pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/f2c add handling for darwin gcc's -install_name, ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9e4c019f6a71
branches:  trunk
changeset: 552504:9e4c019f6a71
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Mon Jan 05 03:45:17 2009 +0000

description:
add handling for darwin gcc's -install_name, -compatiblity_version and
-current_version flags.  These are added by libtool and break going through f2c
bump PKGREVISION

diffstat:

 lang/f2c/Makefile         |   4 ++--
 lang/f2c/files/f2c-f77.in |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 339d7319e4c1 -r 9e4c019f6a71 lang/f2c/Makefile
--- a/lang/f2c/Makefile Mon Jan 05 02:37:05 2009 +0000
+++ b/lang/f2c/Makefile Mon Jan 05 03:45:17 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2008/04/30 21:38:15 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.45 2009/01/05 03:45:17 dbj Exp $
 
 DISTNAME=      f2c-20001205
-PKGREVISION=   10
+PKGREVISION=   11
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_LOCAL}
 
diff -r 339d7319e4c1 -r 9e4c019f6a71 lang/f2c/files/f2c-f77.in
--- a/lang/f2c/files/f2c-f77.in Mon Jan 05 02:37:05 2009 +0000
+++ b/lang/f2c/files/f2c-f77.in Mon Jan 05 03:45:17 2009 +0000
@@ -13,6 +13,7 @@
 # -r8   promote REAL and COMPLEX to DOUBLE REAL and DOUBLE COMPLEX
 # -s    to strip executible 
 # -v    for verbose output
+# -compatibility_version, -install_name, -current_version    for libtool on darwin gcc
 # 
 # Also only pass -m* to the C compiler not f2c.
 # 
@@ -276,6 +277,21 @@
                shift
                ;;
 
+       -install_name)
+               CFLAGS="$CFLAGS $1 $(shell_quote "$2")"
+               shift 2;
+               ;;
+
+       -compatibility_version)
+               CFLAGS="$CFLAGS $1 $(shell_quote "$2")"
+               shift 2;
+               ;;
+
+       -current_version)
+               CFLAGS="$CFLAGS $1 $(shell_quote "$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