summaryrefslogtreecommitdiff
path: root/recipes/fltk/files
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/fltk/files')
-rw-r--r--recipes/fltk/files/fix-it-damnit.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes/fltk/files/fix-it-damnit.patch b/recipes/fltk/files/fix-it-damnit.patch
new file mode 100644
index 0000000000..ed1effdfc7
--- /dev/null
+++ b/recipes/fltk/files/fix-it-damnit.patch
@@ -0,0 +1,39 @@
+Index: fltk-2.0.x-r6671/Makefile
+===================================================================
+--- fltk-2.0.x-r6671.orig/Makefile
++++ fltk-2.0.x-r6671/Makefile
+@@ -25,7 +25,7 @@
+
+ include makeinclude
+
+-DIRS = src $(LOCALIMAGES) images OpenGL fluid glut test
++DIRS = src $(LOCALIMAGES) images fluid
+
+ all: makeinclude
+ for dir in $(DIRS); do\
+Index: fltk-2.0.x-r6671/makeinclude.in
+===================================================================
+--- fltk-2.0.x-r6671.orig/makeinclude.in
++++ fltk-2.0.x-r6671/makeinclude.in
+@@ -79,7 +79,7 @@
+ # libraries to link with:
+ LDLIBS = @LDFLAGS@ @LIBS@
+ GLDLIBS = @LDFLAGS@ @GLLIB@ @LIBS@
+-LINKFLTK = -L../lib @LINKFLTK@
++LINKFLTK = -L../lib @LINKFLTK@
+ LINKFLTKGL = -L../lib @LINKFLTKGL@ @LINKFLTK@
+ LINKFLTKFORMS = -L../lib -lfltk2_forms @LINKFLTK@
+ LOCAL_IMAGELIBS = @LOCAL_IMAGELIBS@
+Index: fltk-2.0.x-r6671/src/Makefile
+===================================================================
+--- fltk-2.0.x-r6671.orig/src/Makefile
++++ fltk-2.0.x-r6671/src/Makefile
+@@ -235,7 +235,7 @@
+
+ ../lib/$(DSONAME): $(OBJECTS)
+ echo $(DSOCOMMAND) $@ $(OBJECTS) -L../lib $(IMAGELIBS)
+- $(DSOCOMMAND) $@ $(OBJECTS) $(LDLIBS)
++ $(DSOCOMMAND) $@ $(OBJECTS) $(LDLIBS) -Wl,-soname,$(DSONAME)
+ $(RM) ../lib/$(DSOLINK)
+ $(LN) ../lib/$(DSONAME) ../lib/$(DSOLINK)
+