Description: simplify linking in Makefile
 use $(CC) with '-Wl' arguments as linker (rather than $(LD)).
 this allows us to use hardening LDFLAGS
Author: IOhannes m zmölnig
Last-Update: 2013-11-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pd-iemlib.orig/Make.include
+++ pd-iemlib/Make.include
@@ -20,7 +20,7 @@
 
 STRIP = strip
 
-PD_LDFLAGS = --export-dynamic -shared $(LD_FLAGS)
+PD_LDFLAGS = -Wl,--export-dynamic -shared $(LDFLAGS)
 PD_LIB = -lm -lc $(LIB)
 
 #select either the DBG and OPT compiler flags below:
@@ -46,7 +46,7 @@
 
 all: $(OBJ)
 	@echo :: $(OBJ)
-	$(LD) $(PD_LDFLAGS) -o $(TARGET).$(EXT) *.o $(PD_LIB)
+	$(CC) $(PD_LDFLAGS) -o $(TARGET).$(EXT) *.o $(PD_LIB)
 	$(STRIP) --strip-unneeded $(TARGET).$(EXT)
 	-cp $(TARGET).$(EXT) ../../lib/
 
