aboutsummaryrefslogtreecommitdiff
path: root/Makefile.libcompat
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-08-23 19:29:37 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-08-23 19:29:37 +0000
commit4d611b2b2d8ef0a80823853e26868f7c6d816d74 (patch)
treed02cd4dd968a04817554b98a24fed17579d4fc4b /Makefile.libcompat
parentde7b37e61892b3134a7bcf86f402af987671a575 (diff)
Notes
Diffstat (limited to 'Makefile.libcompat')
-rw-r--r--Makefile.libcompat3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.libcompat b/Makefile.libcompat
index 9fbfa075d3380..987874b15489d 100644
--- a/Makefile.libcompat
+++ b/Makefile.libcompat
@@ -73,7 +73,8 @@ LIBCOMPATCFLAGS+= ${LIBCOMPATCPUFLAGS} \
# Clang/GCC.
LIBCOMPATCFLAGS+= -B${LIBCOMPATTMP}/usr/lib${libcompat}
-.if defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc
+.if ${WANT_COMPILER_TYPE} == gcc || \
+ (defined(X_COMPILER_TYPE) && ${X_COMPILER_TYPE} == gcc)
# GCC requires -isystem when using a cross-compiler and --sysroot. Note that
# Makefile.inc1 only applies this with an external compiler but libcompat
# always does since even in-tree GCC 4.2 needs this to override the built-in