diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-11-13 20:59:44 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-11-13 20:59:44 +0000 |
commit | 02c39fcfc0c4f2f71e3596f833bb7cd7c1088ac9 (patch) | |
tree | fb8761b98e40ed3923e095f8db2d865d53cb0ae7 | |
parent | 2157eb848fb126690ed6405c6965f01badf77768 (diff) |
Pass -DOPENBSD_CROSS to CFLAGS when cross-compiling gcc2. Temporary bandaid
until we get rid of it. Soon.
-rw-r--r-- | Makefile.cross | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.cross b/Makefile.cross index 67809f45f7b..a47034a296a 100644 --- a/Makefile.cross +++ b/Makefile.cross @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.cross,v 1.57 2012/11/13 20:51:57 miod Exp $ +# $OpenBSD: Makefile.cross,v 1.58 2012/11/13 20:59:43 miod Exp $ cross-tools: cross-includes cross-binutils cross-gcc cross-lib cross-distrib: cross-tools cross-bin cross-share cross-sys cross-etc-root-var @@ -350,13 +350,13 @@ ${CROSSGCC}: ${CROSSBINUTILS} --enable-languages="c,c++" --enable-cpp --disable-nls \ --with-gxx-include-dir=${CROSSDIR}/usr/include/g++ && \ PATH=${CROSSPATH} ${MAKE} BISON=yacc LANGUAGES="${CROSSLANGS}" \ - CFLAGS="${CFLAGS} -I${.CURDIR}/gnu/lib/libiberty/include" \ + CFLAGS="${CFLAGS} -DOPENBSD_CROSS -I${.CURDIR}/gnu/lib/libiberty/include" \ LIBIBERTY_INCLUDES=${.CURDIR}/gnu/lib/libiberty/include \ DEMANGLER_PROG= DEMANGLE_H= LDFLAGS="${LDSTATIC}" build_infodir=. \ GCC_FOR_TARGET="./xgcc -B./ -I${CROSSDIR}/usr/include" && \ ${MAKE} BISON=yacc LANGUAGES="${CROSSLANGS}" LDFLAGS="${LDSTATIC}" \ GCC_FOR_TARGET="./xgcc -B./ -I${CROSSDIR}/usr/include" \ - CFLAGS="${CFLAGS} -I${.CURDIR}/gnu/lib/libiberty/include" \ + CFLAGS="${CFLAGS} -DOPENBSD_CROSS -I${.CURDIR}/gnu/lib/libiberty/include" \ LIBIBERTY_INCLUDES=${.CURDIR}/gnu/lib/libiberty/include \ build_infodir=. INSTALL_MAN= INSTALL_HEADERS_DIR= install) mv -f ${CROSSDIR}/usr/bin/cpp ${CROSSDIR}/usr/${TARGET_CANON}/bin/${TARGET_CANON}-libexeccpp |