summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2010-01-10 20:17:49 +0000
committeradam <adam@pkgsrc.org>2010-01-10 20:17:49 +0000
commitb854543d57e347c71409c500e179f6d2f80feeb6 (patch)
tree14d224fa20f9c8f092f1cb0ea7943080c994657d /lang
parent15b6134f5ac932a982e2366731bbafc0ac7e08b5 (diff)
downloadpkgsrc-b854543d57e347c71409c500e179f6d2f80feeb6.tar.gz
Pass -arch argument correctly to the compiler; fixes building on Mac OS X
Diffstat (limited to 'lang')
-rw-r--r--lang/f2c/files/f2c-f77.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/lang/f2c/files/f2c-f77.in b/lang/f2c/files/f2c-f77.in
index 998e40bb4e9..f59c5aadba1 100644
--- a/lang/f2c/files/f2c-f77.in
+++ b/lang/f2c/files/f2c-f77.in
@@ -26,6 +26,8 @@ PATH=$PATH:/bin:/usr/bin:@PREFIX@/bin
#
# Options:
#
+# -arch Compile for the specified architecture (Darwin)
+#
# -c Do not call linker, leave relocatables in *.o.
#
# -C Check that subscripts are in bounds.
@@ -292,6 +294,10 @@ do
shift 2;
;;
+ -arch) CFLAGS="$CFLAGS -arch $2"
+ shift 2
+ ;;
+
-*) CFLAGS="$CFLAGS $(shell_quote "$1")"
CPPFLAGS="$CPPFLAGS $(shell_quote "$1")"
if test $VERBOSE = "yes"; then