Reduce difference with NetBSD share/mk
Move Minix-specific parameters from bsd.gcc.mk to bsd.own.mk, which is any way patched. This enables then bsd.gcc.mk to be aligned on the NetBSD version. Also remove a few duplicate settings which are not anymore needed. Change-Id: I93384527d3a2f18c8ece9fab9d24aa7ef8516a2d
This commit is contained in:
parent
6fd981c465
commit
c3225ca1a5
|
|
@ -14,7 +14,7 @@ SRCS+= gcov.c
|
|||
CPPFLAGS+= -DUSE_COVERAGE
|
||||
.endif
|
||||
|
||||
CFLAGS+= -Wall -Wextra -Werror
|
||||
CFLAGS+= -Wall -Wextra -Werror -Wno-sign-compare
|
||||
DPADD+= ${LIBSYS} ${LIBTIMERS} ${LIBEXEC}
|
||||
LDADD+= -lsys -ltimers -lexec -lmthread
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
.if !defined(_BSD_GCC_MK_)
|
||||
_BSD_GCC_MK_=1
|
||||
|
||||
.if defined(EXTERNAL_TOOLCHAIN) && !defined(__MINIX)
|
||||
.if defined(EXTERNAL_TOOLCHAIN)
|
||||
_GCC_CRTBEGIN!= ${CC} --print-file-name=crtbegin.o
|
||||
_GCC_CRTBEGINS!= ${CC} --print-file-name=crtbeginS.o
|
||||
_GCC_CRTEND!= ${CC} --print-file-name=crtend.o
|
||||
|
|
@ -23,20 +23,4 @@ _GCC_CRTDIR?= ${DESTDIR}/usr/lib
|
|||
_GCC_LIBGCCDIR?= ${DESTDIR}/usr/lib
|
||||
.endif
|
||||
|
||||
.if defined(__MINIX)
|
||||
AFLAGS+=-D__ASSEMBLY__
|
||||
CPPFLAGS+= -fno-builtin -Wall -Wno-sign-compare
|
||||
|
||||
#LSC FIXME: Needed by clang for now
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
CPUFLAGS+= -march=i586
|
||||
.endif
|
||||
|
||||
# LSC In the current state there is too much to be done
|
||||
# Some package have been identified by directly adding NOGCCERROR
|
||||
# To their Makefiles
|
||||
NOGCCERROR:= yes
|
||||
NOCLANGERROR:= yes
|
||||
.endif # defined(__MINIX)
|
||||
|
||||
.endif # ! defined(_BSD_GCC_MK_)
|
||||
|
|
|
|||
|
|
@ -22,16 +22,27 @@ MANGRP?= operator
|
|||
INFOGRP?= operator
|
||||
DOCGRP?= operator
|
||||
|
||||
MKBINUTILS:= no
|
||||
MKGDB:= no
|
||||
MKBINUTILS?= no
|
||||
MKGDB?= no
|
||||
MKGCC?= no
|
||||
|
||||
# LSC To check if works
|
||||
#DESTDIR?= /usr/destdir.${MACHINE_ARCH}
|
||||
# LSC In the current state there is too much to be done
|
||||
# # Some package have been identified by directly adding NOGCCERROR
|
||||
# # To their Makefiles
|
||||
NOGCCERROR?= yes
|
||||
NOCLANGERROR?= yes
|
||||
|
||||
AFLAGS+= -D__ASSEMBLY__
|
||||
CFLAGS+= -fno-builtin
|
||||
|
||||
# For C++ programs
|
||||
CPPFLAGS+= -I${DESTDIR}/usr/include/g++
|
||||
|
||||
#LSC FIXME: Needed by clang for now
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
CPUFLAGS+= -march=i586
|
||||
.endif
|
||||
|
||||
# LSC MINIX SMP Support?
|
||||
.ifdef CONFIG_SMP
|
||||
SMP_FLAGS += -DCONFIG_SMP
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@
|
|||
|
||||
.ifdef __MINIX
|
||||
GCC_LANGUAGES=c c++
|
||||
|
||||
# LSC FIXME Some flags have to be adapted in order to work for minix
|
||||
MINIX_CONFIGURE_ARGS= \
|
||||
--disable-libssp \
|
||||
--disable-threads \
|
||||
--disable-visibility \
|
||||
--disable-libunwind
|
||||
.else
|
||||
GCC_LANGUAGES=c c++ objc
|
||||
.endif
|
||||
|
|
@ -36,18 +43,14 @@ MULTILIB_ARGS= --disable-multilib
|
|||
SOFTFLOAT_ARGS= -with-float=soft
|
||||
.endif
|
||||
|
||||
# LSC FIXME Some flags have to be adapted in order to work for minix
|
||||
COMMON_CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} \
|
||||
--disable-libssp \
|
||||
--disable-threads \
|
||||
--disable-visibility \
|
||||
--disable-libunwind \
|
||||
--enable-long-long \
|
||||
--enable-threads \
|
||||
--with-bugurl=http://www.NetBSD.org/Misc/send-pr.html \
|
||||
--with-pkgversion="NetBSD nb1 20120916" \
|
||||
--with-system-zlib \
|
||||
${VAX_CONFIGURE_ARGS} \
|
||||
${MINIX_CONFIGURE_ARGS} \
|
||||
--enable-__cxa_atexit
|
||||
.if defined(GCC_CONFIG_ARCH.${MACHINE_ARCH})
|
||||
COMMON_CONFIGURE_ARGS+= --with-arch=${GCC_CONFIG_ARCH.${MACHINE_ARCH}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user