diff options
author | adam <adam@pkgsrc.org> | 2010-01-10 20:17:49 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2010-01-10 20:17:49 +0000 |
commit | a004de676f1d034ee5c5275b23676a0a9c8f8065 (patch) | |
tree | 14d224fa20f9c8f092f1cb0ea7943080c994657d /lang | |
parent | 70b3b4c3df3221f8c4157614e0456be1171816bc (diff) | |
download | pkgsrc-a004de676f1d034ee5c5275b23676a0a9c8f8065.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.in | 6 |
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 |