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
commit4d388ba30189aa8aa4a564055b28603ba14d0da7 (patch)
tree67b17bb421fbddd6abd4cc6a92238547e7f8d8b6 /mk/compiler.mk
parente50231dc7343a4100da4b22fce7093d307ca6466 (diff)
downloadpkgsrc-4d388ba30189aa8aa4a564055b28603ba14d0da7.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