aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-05-16 03:08:33 +0800
committerthierry <thierry@FreeBSD.org>2005-05-16 03:08:33 +0800
commitd6a68482ae7e1306d710a084978ec9abb0086c50 (patch)
tree781b1381b93678d942890ecfb69b470d24893169
parentdce8dfb74bff2e5424e53b4670ca8b9999f6304c (diff)
downloadfreebsd-ports-gnome-d6a68482ae7e1306d710a084978ec9abb0086c50.tar.gz
freebsd-ports-gnome-d6a68482ae7e1306d710a084978ec9abb0086c50.tar.zst
freebsd-ports-gnome-d6a68482ae7e1306d710a084978ec9abb0086c50.zip
Respect CFLAGS.
PR: ports/81047 (follow-up) Submitted by: maintainer
-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@"