summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-10-11 02:44:17 +0000
committergrant <grant@pkgsrc.org>2003-10-11 02:44:17 +0000
commitbeb87586beaefa2dbcab767ef3a88a1aeefe4fd1 (patch)
tree67b17bb421fbddd6abd4cc6a92238547e7f8d8b6 /mk/compiler.mk
parent93835fcfa7badf3d4d6b54565d0430c8c91a1d15 (diff)
downloadpkgsrc-beb87586beaefa2dbcab767ef3a88a1aeefe4fd1.tar.gz
don't hardcode the -DHasGcc2... flags to imake, pass them only if
we're actually using gcc on Solaris. fixes building of imake PIC code when the compiler is not gcc.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 02e2ace0fc0..418afaab5de 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.17 2003/10/06 11:14:22 grant Exp $
+# $NetBSD: compiler.mk,v 1.18 2003/10/11 02:44:18 grant Exp $
# This Makefile fragment implements handling for supported
# C/C++/fortran compilers.
@@ -252,4 +252,11 @@ _COMPILER_LD_FLAG= # SunPro compiler
_COMPILER_LD_FLAG= -Wl, # GCC and others
.endif
+# Pass the required flags to imake to tell it we're using gcc on
+# Solaris.
+#
+.if ${OPSYS} == "SunOS" && defined(_CC_IS_GCC)
+IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
+.endif
+
.endif # COMPILER_MK