blob: a8a8cb6fb445234ebc76c68f6d992bbc7155d68f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
diff -Naur flite-1.3-release/config/common_make_rules flite-1.3-release.new/config/common_make_rules
--- flite-1.3-release/config/common_make_rules 2014-02-12 09:56:23.058678651 -0800
+++ flite-1.3-release.new/config/common_make_rules 2014-02-12 11:27:18.039561163 -0800
@@ -67,6 +67,11 @@
BUILDDIRS=$(OBJDIR) $(BINDIR) $(LIBDIR)
+ifndef SO_LDFLAGS
+SO_LDFLAGS := $(LDFLAGS)
+endif
+export SO_LDFLAGS
+
ifdef SHFLAGS
FLITELIBS = $(LIBDIR)/libflite.so
LDFLAGS += -L$(LIBDIR) -lflite -lm $(OTHERLIBS)
@@ -130,7 +135,7 @@
@ rm -rf shared_os && mkdir shared_os
@ rm -f $@ $@.${PROJECT_VERSION} $@.${PROJECT_SHLIB_VERSION}
@ (cd shared_os && ar x ../$<)
- @ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os -L../ $($(@:%.so=%_LDLIBS)))
+ @ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} $(SO_LDFLAGS) -o ../$@.${PROJECT_VERSION} *.os -L../ $($(@:%.so=%_LDLIBS)))
@ ln -s $@.${PROJECT_VERSION} $@.${PROJECT_SHLIB_VERSION}
@ ln -s $@.${PROJECT_SHLIB_VERSION} $@
@ rm -rf shared_os
|