summaryrefslogtreecommitdiff
path: root/media-plugins/cmt-plugins/files/cmt-plugins-1.17-makefile.patch
blob: 93f3ab5df99c75cde2d6858c2bf9147a6601f033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/src/Makefile b/src/Makefile
index 159dd46..5c2c0f4 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -11,8 +11,6 @@ INSTALL_PLUGINS_DIR	=	/usr/lib/ladspa/
 # GENERAL
 #
 
-CFLAGS		=	$(INCLUDES) -Wall -Werror -O2 -fPIC
-CXXFLAGS	=	$(CFLAGS)
 PLUGIN_LIB	=	../plugins/cmt.so
 
 ###############################################################################
@@ -63,14 +61,18 @@ PLUGIN_OBJECTS	=							\
 
 plugin:	$(PLUGIN_LIB)
 
+%.o: %.cpp
+	$(CXX) $(INCLUDES) $(CFLAGS) -fPIC -c -o $*.o $*.cpp
+
+
 targets:	$(PLUGIN_LIB)
 
 $(PLUGIN_LIB):	$(PLUGIN_OBJECTS) gcc_exports.map
-	$(CXX)	-shared							\
+	$(CXX)	$(LDFLAGS)						\
+		-shared							\
 		$(CFLAGS)						\
 		-fvisibility=hidden					\
 		-fvisibility-inlines-hidden				\
-		-s							\
 		-Wl,--version-script=gcc_exports.map			\
 		-o $(PLUGIN_LIB)					\
 		$(PLUGIN_OBJECTS)