Description: Change Makefile to honor LDFLAGS
Author: Andreas Moog <andreas.moog@warperbbs.de>
Origin: other
Last-Update: 2017-06-13

Index: libsml-0.1.1+git20180125/sml/Makefile
===================================================================
--- libsml-0.1.1+git20180125.orig/sml/Makefile
+++ libsml-0.1.1+git20180125/sml/Makefile
@@ -16,6 +16,8 @@ else
 SONAME=$(NAME).so.$(SOVERSION)
 endif
 
+LDFLAGS += -Wl,-soname=$(SONAME) -shared
+
 LIB_DIR=./lib
 INC_DIR=./include
 OBJ_LIB=$(LIB_DIR)/$(NAME).o
@@ -66,7 +68,7 @@ $(DYN_LIB): $(OBJS)
 ifeq ($(UNAME), Darwin)
 	$(CC) $(LIBS) -dynamiclib -install_name $(SONAME) -o $@ $^
 else
-	$(LD) $(LIBS) -shared -soname $(SONAME) -o $@ $^
+	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
 endif
 
 $(OBJ_LIB): $(OBJS)
