fix sysroot clang

Change-Id: I63adf8460e7fdbe3d9d5ad6c828ae5758cb1643c
This commit is contained in:
2013-04-17 13:01:55 +02:00
parent d44c3377db
commit 84a7c3f464
6 changed files with 54 additions and 38 deletions

View File

@@ -24,11 +24,40 @@ INFOGRP?= operator
DOCGRP?= operator
MKBINUTILS?= no
MKGDB:= no
MKGCC?= no
MKGCCCMDS?= no
MKPROFILE?= no
MKSLJIT?= no
#MINIX-specific variables
MKCOVERAGE?= no
# LSC MINIX does not support these features ATM.
USE_FORT:= no
USE_SSP:= no
MKCRYPTO:= no
MKGDB:= no
MKGROFF:= no
MKHESIOD:= no
MKHTML:= no
MKINET6:= no
MKIPFILTER:= no
MKISCSI:= no
MKKERBEROS:= no
MKKMOD:= no
MKLDAP:= no
MKLINT:= no
MKLVM:= no
MKMDNS:= no
MKNLS:= no
MKNPF:= no
MKPAM:= no
MKPF:= no
MKPOSTFIX:= no
MKRUMP:= no
MKSKEY:= no
MKYP:= no
# LSC MINIX SMP Support?
.ifdef CONFIG_SMP
SMP_FLAGS += -DCONFIG_SMP
@@ -63,6 +92,17 @@ USETOOLS?= never
MKBITCODE:=no
. endif
. endif # ${_HAVE_GOLD:U} == ""
# If DESTDIR was specified, and we are not using the tools, then make sure to
# build out-of-tree and to refer only DESTDIR for target binaries
# The case when using tools is already handled below.
. if ${DESTDIR:U} != ""
CPPFLAGS+= --sysroot=${DESTDIR}
LDFLAGS+= --sysroot=${DESTDIR}
. if defined(HAVE_LLVM)
LDFLAGS+= -L${DESTDIR}/usr/lib
. endif
. endif # ${DESTDIR:U} != ""
. endif # ${USETOOLS:Uno} != "yes"
. if !defined(HOSTPROG) && !defined(HOSTLIB)
@@ -933,36 +973,8 @@ MKBINUTILS?= ${MKBFD}
MKZFS?= yes
.endif
# Some tough Minix defaults
MKCOVERAGE?= no
MKPROFILE?= no
# LSC: MINIX: Has to be here, otherwise libgcc_s.a is not found!?
MKSTATICLIB:= yes
MKLINT:= no
# LSC MINIX does not support these features ATM.
USE_FORT:= no
USE_SSP:= no
MKYP:= no
MKPF:= no
MKNLS:= no
MKHESIOD:= no
MKPOSTFIX:= no
MKKMOD:= no
MKEXTSRC:= no
MKRUMP:= no
MKSKEY:= no
MKCRYPTO:= no
MKMDNS:= no
MKNPF:= no
MKISCSI:= no
MKLVM:= no
MKKERBEROS:= no
MKLDAP:= no
MKPAM:= no
MKIPFILTER:= no
MKINET6:= no
MKGROFF:= no
MKHTML:= no
#
# MK* options which default to "yes".