diff options
author | tron <tron@pkgsrc.org> | 2009-09-12 21:42:27 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2009-09-12 21:42:27 +0000 |
commit | 3a749b36b1b7e6e13d8fcb5f1fd882d151c2f675 (patch) | |
tree | 8d66e47f38bfb0ae4f30521fd7e1ef6138d8701e | |
parent | 61b89b51a6703faaf39d3556495bc2f1ee21c01b (diff) | |
download | pkgsrc-3a749b36b1b7e6e13d8fcb5f1fd882d151c2f675.tar.gz |
Add 32 bit and 64 ABI options for GCC under Mac OS X.
-rw-r--r-- | mk/compiler/gcc.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 257a4ef313c..354e3ee573b 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.99 2009/07/28 06:55:24 rillig Exp $ +# $NetBSD: gcc.mk,v 1.100 2009/09/12 21:42:27 tron Exp $ # # This is the compiler definition for the GNU Compiler Collection. # @@ -453,6 +453,11 @@ IMAKEOPTS+= -DHasGcc2=YES -DHasGcc2ForCplusplus=YES _COMPILER_ABI_FLAG.64= -m64 .endif +.if ${OPSYS} == "Darwin" +_COMPILER_ABI_FLAG.32= -m32 +_COMPILER_ABI_FLAG.64= -m64 +.endif + .if !empty(_USE_PKGSRC_GCC:M[yY][eE][sS]) . if exists(${CCPATH}) CC_VERSION_STRING!= ${CCPATH} -v 2>&1 |