summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2011-03-29 13:45:01 +0000
committeradam <adam@pkgsrc.org>2011-03-29 13:45:01 +0000
commit5fb33ca55d1e43d2a7880031153053f4304ec6df (patch)
tree8b46c46c191eb5ef7109d2409ea28d0be6b10d16 /lang/ocaml/patches
parented768cb52482064c5a7248014f498af367b304a7 (diff)
downloadpkgsrc-5fb33ca55d1e43d2a7880031153053f4304ec6df.tar.gz
Pass CFLAGS and LDFLAGS to the compiler (fixes problems e.g. on Mac OS X); pkglint clean-up
Diffstat (limited to 'lang/ocaml/patches')
-rw-r--r--lang/ocaml/patches/patch-at11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/ocaml/patches/patch-at b/lang/ocaml/patches/patch-at
index 265e0ec2539..d9ade42346e 100644
--- a/lang/ocaml/patches/patch-at
+++ b/lang/ocaml/patches/patch-at
@@ -1,7 +1,16 @@
-$NetBSD: patch-at,v 1.20 2010/12/19 08:27:17 is Exp $
+$NetBSD: patch-at,v 1.21 2011/03/29 13:45:02 adam Exp $
--- configure.orig 2010-07-28 13:18:22.000000000 +0000
+++ configure
+@@ -328,6 +328,8 @@ case "$bytecc,$host" in
+ gcc*)
+ bytecccompopts="-fno-defer-pop $gcc_warnings";;
+ esac
++bytecccompopts="$bytecccompopts $CFLAGS"
++bytecclinkopts="$bytecclinkopts $LDFLAGS"
+
+ # Configure compiler to use in further tests
+
@@ -520,7 +520,7 @@ if test $withsharedlibs = "yes"; then
mksharedlib="$flexlink"
mkmaindll="$flexlink -maindll"