SHA256
1
0
forked from pool/ladspa
ladspa/ladspa-ldcommand.patch

30 lines
911 B
Diff
Raw Normal View History

Index: src/Makefile
===================================================================
--- src/Makefile.orig 2019-01-03 17:08:22.000000000 +0200
+++ src/Makefile 2019-01-06 10:29:48.264066021 +0200
@@ -29,6 +29,7 @@ PROGRAMS = ../bin/analyseplugin \
../bin/listplugins
CC = cc
CPP = c++
+LD = ld
###############################################################################
#
@@ -37,10 +38,13 @@ CPP = c++
../plugins/%.so: plugins/%.c ladspa.h gcc_exports.map
$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
- $(LD) -o ../plugins/$*.so \
+ $(CC) -o ../plugins/$*.so \
plugins/$*.o \
- -shared \
- --version-script=gcc_exports.map
+ -shared \
+ ${LIBRARIES} \
+ $(CFLAGS) \
+ -s \
+ -Wl,--version-script=gcc_exports.map
../plugins/%.so: plugins/%.cpp ladspa.h gcc_exports.map
$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp