diff options
author | Felipe Sateler <fsateler@gmail.com> | 2009-11-03 20:38:31 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@gmail.com> | 2009-11-03 20:38:31 -0300 |
commit | 935181f640c23ed1bbb745be2d33434c8325b1b3 (patch) | |
tree | 13da15c10129a21ad36f932746178c1a477a2262 /debian | |
parent | e9d780eadd94c4e1c14aabd3192dab3f899a8640 (diff) |
Fix linkage of C plugins
Diffstat (limited to 'debian')
-rw-r--r-- | debian/patches/04_fix-linkage-C-plugins.diff | 23 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/04_fix-linkage-C-plugins.diff b/debian/patches/04_fix-linkage-C-plugins.diff new file mode 100644 index 0000000..5934f75 --- /dev/null +++ b/debian/patches/04_fix-linkage-C-plugins.diff @@ -0,0 +1,23 @@ +LD does not automatically insert needed libraries, we must specify them +Index: ladspa-sdk/src/makefile +=================================================================== +--- ladspa-sdk.orig/src/makefile 2009-11-03 20:36:21.000000000 -0300 ++++ ladspa-sdk/src/makefile 2009-11-03 20:37:25.000000000 -0300 +@@ -14,7 +14,7 @@ + # + + INCLUDES = -I. +-LIBRARIES = -ldl -lm ++LIBRARIES = -ldl -lm -lc + CFLAGS = $(INCLUDES) -Wall -Werror -O2 -fPIC + CXXFLAGS = $(CFLAGS) + PLUGINS = ../plugins/amp.so \ +@@ -35,7 +35,7 @@ + + ../plugins/%.so: plugins/%.c ladspa.h + $(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c +- $(LD) -o ../plugins/$*.so plugins/$*.o -shared ++ $(LD) -o ../plugins/$*.so plugins/$*.o -shared $(LIBRARIES) + + ../plugins/%.so: plugins/%.cpp ladspa.h + $(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp diff --git a/debian/patches/series b/debian/patches/series index 6619d71..f83e43e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 01_no-mkdirhier.diff 02_default-ladspa-path.diff 03_m68k_workaround.diff +04_fix-linkage-C-plugins.diff |