From 7503fad2a962c34f04b6626d5a83e8ff81f3add7 Mon Sep 17 00:00:00 2001 From: dbj Date: Mon, 5 Jan 2009 03:45:17 +0000 Subject: 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 --- lang/f2c/Makefile | 4 ++-- lang/f2c/files/f2c-f77.in | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'lang/f2c') diff --git a/lang/f2c/Makefile b/lang/f2c/Makefile index edfeeeb8ad7..0f9647164b3 100644 --- a/lang/f2c/Makefile +++ b/lang/f2c/Makefile @@ -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 --git a/lang/f2c/files/f2c-f77.in b/lang/f2c/files/f2c-f77.in index 4fe8b470747..2aa8b10fe2b 100644 --- a/lang/f2c/files/f2c-f77.in +++ b/lang/f2c/files/f2c-f77.in @@ -13,6 +13,7 @@ PATH=$PATH:/bin:/usr/bin:@PREFIX@/bin # -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 @@ do 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 -- cgit v1.2.3