diff options
author | jlam <jlam> | 2002-08-27 17:31:58 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-08-27 17:31:58 +0000 |
commit | 2d39b77208ee3b0414d8cff598bd4d98f428f271 (patch) | |
tree | aef635798d363c7a4ffc363f0af8c4244399cee3 /lang | |
parent | 3366c8974e19a852b8896c480d789f510325f5c9 (diff) | |
download | pkgsrc-2d39b77208ee3b0414d8cff598bd4d98f428f271.tar.gz |
Set some environment vars so that f2c-f77 will use the buildlink2 wrappers
instead of the actual compiler.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/f2c/buildlink2.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/f2c/buildlink2.mk b/lang/f2c/buildlink2.mk index 37bdc912d28..eb906254334 100644 --- a/lang/f2c/buildlink2.mk +++ b/lang/f2c/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.2 2002/08/25 19:23:02 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.3 2002/08/27 17:31:58 jlam Exp $ .if !defined(F2C_BUILDLINK2_MK) F2C_BUILDLINK2_MK= # defined @@ -20,9 +20,17 @@ BUILDLINK_FILES.f2c+= lib/libI77.* BUILDLINK_FILES.f2c+= lib/libI77_p.a BUILDLINK_FILES.f2c+= lib/libI77_pic.a +BUILDLINK_TARGETS+= f2c-buildlink + PKG_FC= ${BUILDLINK_PREFIX.f2c}/bin/f2c-f77 -BUILDLINK_TARGETS+= f2c-buildlink +# The f2c-f77 script takes some environment variables to override hardcoded +# values for the compiler and C preprocessor. +# +CONFIGURE_ENV+= CC_f2c="${BUILDLINK_CC}" +CONFIGURE_ENV+= CPP="${BUILDLINK_CPP}" +MAKE_ENV+= CC_f2c="${BUILDLINK_CC}" +MAKE_ENV+= CPP="${BUILDLINK_CPP}" f2c-buildlink: _BUILDLINK_USE |