pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/f2c/files Pass -arch argument correctly to the co...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5618c5dc53ac
branches: trunk
changeset: 569154:5618c5dc53ac
user: adam <adam%pkgsrc.org@localhost>
date: Sun Jan 10 20:17:49 2010 +0000
description:
Pass -arch argument correctly to the compiler; fixes building on Mac OS X
diffstat:
lang/f2c/files/f2c-f77.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r 3a81f55e84df -r 5618c5dc53ac lang/f2c/files/f2c-f77.in
--- a/lang/f2c/files/f2c-f77.in Sun Jan 10 16:32:03 2010 +0000
+++ b/lang/f2c/files/f2c-f77.in Sun Jan 10 20:17:49 2010 +0000
@@ -26,6 +26,8 @@
#
# 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 @@
shift 2;
;;
+ -arch) CFLAGS="$CFLAGS -arch $2"
+ shift 2
+ ;;
+
-*) CFLAGS="$CFLAGS $(shell_quote "$1")"
CPPFLAGS="$CPPFLAGS $(shell_quote "$1")"
if test $VERBOSE = "yes"; then
Home |
Main Index |
Thread Index |
Old Index