summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-11-14 13:20:55 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-11-14 13:20:55 +0000
commitff07acb3a615d0b92d88609a01694cfacdd556b9 (patch)
treebd2911a08354ee029d98e973b418fb8040b95a96 /dev-lang/ocaml/files
parentSparc stable for Bug #245438, test passes but I have no way of using it. (diff)
downloadgentoo-2-ff07acb3a615d0b92d88609a01694cfacdd556b9.tar.gz
gentoo-2-ff07acb3a615d0b92d88609a01694cfacdd556b9.tar.bz2
gentoo-2-ff07acb3a615d0b92d88609a01694cfacdd556b9.zip
respect ldflags for ocamlyacc
(Portage version: 2.2_rc14/cvs/Linux 2.6.27.5 x86_64)
Diffstat (limited to 'dev-lang/ocaml/files')
-rw-r--r--dev-lang/ocaml/files/ocaml-3.11.0_beta1-yaccldflags.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-lang/ocaml/files/ocaml-3.11.0_beta1-yaccldflags.patch b/dev-lang/ocaml/files/ocaml-3.11.0_beta1-yaccldflags.patch
new file mode 100644
index 000000000000..b3dd1ea38126
--- /dev/null
+++ b/dev-lang/ocaml/files/ocaml-3.11.0_beta1-yaccldflags.patch
@@ -0,0 +1,13 @@
+Index: ocaml-3.11.0+beta1/yacc/Makefile
+===================================================================
+--- ocaml-3.11.0+beta1.orig/yacc/Makefile
++++ ocaml-3.11.0+beta1/yacc/Makefile
+@@ -25,7 +25,7 @@ OBJS= closure.o error.o lalr.o lr0.o mai
+ all: ocamlyacc$(EXE)
+
+ ocamlyacc$(EXE): $(OBJS)
+- $(CC) $(CFLAGS) $(CCLINKFLAGS) -o ocamlyacc $(OBJS)
++ $(CC) $(LDFLAGS) $(CFLAGS) $(CCLINKFLAGS) -o ocamlyacc $(OBJS)
+
+ version.h : ../VERSION
+ echo "#define OCAML_VERSION \"`head -1 ../VERSION`\"" >version.h