--- src/makefile.orig
+++ src/makefile
@@ -15,7 +15,7 @@
 
 INCLUDES	=	-I.
 LIBRARIES	=	-ldl -lm
-CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
+CFLAGS		+=	$(INCLUDES) -Wall -Werror -O3 -fPIC
 CXXFLAGS	=	$(CFLAGS)
 PLUGINS		=	../plugins/amp.so				\
 			../plugins/delay.so				\
@@ -83,17 +83,17 @@
 ../bin/applyplugin:	applyplugin.o load.o default.o
 	$(CC) $(CFLAGS) $(LIBRARIES)					\
 		-o ../bin/applyplugin					\
-		applyplugin.o load.o default.o
+		applyplugin.o load.o default.o $(LDFLAGS)
 
 ../bin/analyseplugin:	analyseplugin.o load.o default.o
 	$(CC) $(CFLAGS) $(LIBRARIES)					\
 		-o ../bin/analyseplugin 				\
-		analyseplugin.o load.o default.o
+		analyseplugin.o load.o default.o $(LDFLAGS)
 
 ../bin/listplugins:	listplugins.o search.o
 	$(CC) $(CFLAGS) $(LIBRARIES)					\
 		-o ../bin/listplugins	 				\
-		listplugins.o search.o
+		listplugins.o search.o $(LDFLAGS)
 
 ###############################################################################
 #
