diff options
author | jlam <jlam@pkgsrc.org> | 2002-08-27 17:31:58 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-08-27 17:31:58 +0000 |
commit | 26b466502d3f048aa0076ef23eb8dcc20b22ed38 (patch) | |
tree | aef635798d363c7a4ffc363f0af8c4244399cee3 /lang | |
parent | 17944cec5e725d83a6cf0dd761000e3e9d5c1b0d (diff) | |
download | pkgsrc-26b466502d3f048aa0076ef23eb8dcc20b22ed38.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 |