summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authortron <tron>2009-09-12 21:42:27 +0000
committertron <tron>2009-09-12 21:42:27 +0000
commitd2a427a6491a4f5dc162cf50f3e96087d97a2869 (patch)
tree8d66e47f38bfb0ae4f30521fd7e1ef6138d8701e /mk/compiler
parentb0031de681ffabeb0c6f07451c75bfc7695bc83e (diff)
downloadpkgsrc-d2a427a6491a4f5dc162cf50f3e96087d97a2869.tar.gz
Add 32 bit and 64 ABI options for GCC under Mac OS X.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk7
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