summaryrefslogtreecommitdiff
path: root/packaging/flex-2.5.34-asneeded.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/flex-2.5.34-asneeded.patch')
-rw-r--r--packaging/flex-2.5.34-asneeded.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/packaging/flex-2.5.34-asneeded.patch b/packaging/flex-2.5.34-asneeded.patch
new file mode 100644
index 0000000..e3386a2
--- /dev/null
+++ b/packaging/flex-2.5.34-asneeded.patch
@@ -0,0 +1,15 @@
+libraries need to be last
+
+Index: tests/test-pthread/Makefile.am
+===================================================================
+--- tests/test-pthread/Makefile.am.orig
++++ tests/test-pthread/Makefile.am
+@@ -37,7 +37,7 @@ scanner.c: $(srcdir)/scanner.l
+ $(FLEX) $(LFLAGS) $<
+
+ $(testname)$(EXEEXT): $(OBJS)
+- $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LOADLIBES)
++ $(CC) -o $@ $(OBJS) $(LOADLIBES) $(LDFLAGS)
+
+ test: $(testname)$(EXEEXT)
+ ./$(testname) $(srcdir)/test-*.input