pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler gcc can use -mabi=${ABI}, if ABI is set (f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dfffdcc97756
branches: trunk
changeset: 474758:dfffdcc97756
user: jschauma <jschauma%pkgsrc.org@localhost>
date: Wed May 05 03:05:41 2004 +0000
description:
gcc can use -mabi=${ABI}, if ABI is set (for example on Irix).
(Includes ugly hack for ABI-inconsistency. See also PR pkg/22571.)
diffstat:
mk/compiler/gcc.mk | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r b93b2780c190 -r dfffdcc97756 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Wed May 05 03:02:01 2004 +0000
+++ b/mk/compiler/gcc.mk Wed May 05 03:05:41 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.63 2004/05/04 00:11:23 danw Exp $
+# $NetBSD: gcc.mk,v 1.64 2004/05/05 03:05:41 jschauma Exp $
.if !defined(COMPILER_GCC_MK)
COMPILER_GCC_MK= defined
@@ -132,6 +132,13 @@
CFLAGS+= -Wno-import
.endif
+# Some platforms (such as IRIX) may support different ABIs. Set the CFLAGS
+# accordingly.
+
+.if defined(ABI)
+CFLAGS+= -mabi=${ABI:C/^32$/n&/}
+.endif
+
.if !empty(_NEED_GCC2:M[yY][eE][sS])
#
# We require gcc-2.x in the lang/gcc directory.
Home |
Main Index |
Thread Index |
Old Index