diff options
-rw-r--r-- | mk/compiler/gcc.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index a84c2b7ab39..e28b405bb7b 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -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 @@ _LANGUAGES.gcc+= ${LANGUAGES.gcc:M${_lang_}} 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. |