--- a/sml/Makefile +++ b/sml/Makefile @@ -54,7 +54,7 @@ libsml: $(ST_LIB) $(OBJ_LIB) endif $(DYN_LIB): $(OBJS) - $(LD) $(LIBS) -shared -soname $(SONAME) -o $@ $^ + $(LD) $(LDFLAGS) $(LIBS) -shared -soname $(SONAME) -o $@ $^ $(OBJ_LIB): $(OBJS) $(LD) -r -o $@ $^