1
Description: Change Makefile to honor LDFLAGS
2
Author: Andreas Moog <andreas.moog@warperbbs.de>
4
Last-Update: 2017-06-13
6
Index: libsml/sml/Makefile
7
===================================================================
8
--- libsml.orig/sml/Makefile
9
+++ libsml/sml/Makefile
10
@@ -12,6 +12,8 @@ NAME=libsml
12
SONAME=$(NAME).so.$(SOVERSION)
14
+LDFLAGS += -Wl,-soname=$(SONAME) -shared
17
OBJ_LIB=$(LIB_DIR)/$(NAME).o
18
DYN_LIB=$(LIB_DIR)/$(SONAME)
19
@@ -54,7 +56,7 @@ libsml: $(ST_LIB) $(OBJ_LIB)
23
- $(LD) $(LIBS) -shared -soname $(SONAME) -o $@ $^
24
+ $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)