summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2005-05-15 19:08:33 +0000
committerThierry Thomas <thierry@FreeBSD.org>2005-05-15 19:08:33 +0000
commit4c10fb5b0226380d5eba61cd73c10b5507a5895d (patch)
treea33c2156b29cce3b7afdb4d2201bb644f929622b /math
parentChase the libadplug update. (diff)
Respect CFLAGS.
PR: ports/81047 (follow-up) Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=135308
Diffstat (limited to 'math')
-rw-r--r--math/gap/Makefile2
-rw-r--r--math/gap/files/patch-gap4r4_cnf_gac.in19
2 files changed, 20 insertions, 1 deletions
diff --git a/math/gap/Makefile b/math/gap/Makefile
index 79ee6ee3f698..ff62fa5d5bb2 100644
--- a/math/gap/Makefile
+++ b/math/gap/Makefile
@@ -39,7 +39,7 @@ do-configure:
(cd ${GAP_WRKSRC}; ./configure)
do-build:
- (cd ${GAP_WRKSRC}; make)
+ (cd ${GAP_WRKSRC}; make COPTS="${CFLAGS}")
do-install:
(${SED} -e "s:GAP_DIR=.*:GAP_DIR=${GAP_LIBDIR}:g" -e "s:GAP_PRG=.*:GAP_PRG=gap:g" ${GAP_WRKSRC}/bin/gap.sh > ${PREFIX}/bin/gap; \
diff --git a/math/gap/files/patch-gap4r4_cnf_gac.in b/math/gap/files/patch-gap4r4_cnf_gac.in
new file mode 100644
index 000000000000..412114f27096
--- /dev/null
+++ b/math/gap/files/patch-gap4r4_cnf_gac.in
@@ -0,0 +1,19 @@
+--- gap4r4/cnf/gac.in.orig Sun May 15 18:26:27 2005
++++ gap4r4/cnf/gac.in Sun May 15 18:26:23 2005
+@@ -67,13 +67,13 @@ stat_identifier="USER";
+
+ # These three should be filled in by the standard autoconf procedures
+ c_compiler="@CC@"
+-c_options="@CFLAGS@"
++c_options="@CFLAGS@ ${CFLAGS}"
+ c_linker="@CC@"
+-c_link_options=""
++c_link_options="${LDFLAGS}"
+ c_libs="@LIBS@"
+
+ # These three will need special care
+-c_dyn_options="@CDYNOPTIONS@"
++c_dyn_options="@CDYNOPTIONS@ ${CFLAGS}"
+ c_dyn_linker="@CDYNLINKER@"
+ c_dyn_linking="@CDYNLINKING@"
+ c_dynlibs="@C_DYNLIBS@"