summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorandreast <andreast@FreeBSD.org>2013-11-21 21:05:11 +0000
committerandreast <andreast@FreeBSD.org>2013-11-21 21:05:11 +0000
commitdc7aaa00b90f5fb0f930315f66afc992f4b9a39f (patch)
tree7bc186ff742d359b19e7260d8b351889c90ae7f4 /gnu/usr.bin/cc
parent87b78313590cadf9b32537068e4e43599cdf0636 (diff)
downloadFreeBSD-src-dc7aaa00b90f5fb0f930315f66afc992f4b9a39f.zip
FreeBSD-src-dc7aaa00b90f5fb0f930315f66afc992f4b9a39f.tar.gz
Fix cross compilation after r258428.
Reviewed by: pfg
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/Makefile.inc2
-rw-r--r--gnu/usr.bin/cc/cc_tools/freebsd-native.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index 0302617..39adc91 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -23,7 +23,7 @@ CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
CSTD?= gnu89
.if ${TARGET_ARCH} != ${MACHINE_ARCH}
-CFLAGS+= -DCROSS_COMPILE
+CFLAGS+= -DCROSS_DIRECTORY_STRUCTURE
.endif
.if ${TARGET_CPUARCH} == "arm" && ${MK_ARM_EABI} != "no"
diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
index 8e523fa..9bf790f 100644
--- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h
+++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h
@@ -18,7 +18,7 @@
#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/c++/"GCCVER
#define GPLUSPLUS_BACKWARD_INCLUDE_DIR PREFIX"/include/c++/"GCCVER"/backward"
#define GCC_INCLUDE_DIR PREFIX"/include/gcc/"GCCVER
-#ifdef CROSS_COMPILE
+#ifdef CROSS_DIRECTORY_STRUCTURE
#define CROSS_INCLUDE_DIR PREFIX"/include"
#else
#define STANDARD_INCLUDE_DIR PREFIX"/include"
OpenPOWER on IntegriCloud