summarylogtreecommitdiffstats
path: root/flite-ldflags.patch
blob: 35c96ab076923a224542ff68e2a8ee3ca2ff7945 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff -ur flite-2.1-release.orig/config/archlinux.lv flite-2.1-release/config/archlinux.lv
--- flite-2.1-release.orig/config/archlinux.lv	2020-04-29 10:45:37.303093661 +0200
+++ flite-2.1-release/config/archlinux.lv	2020-04-29 10:45:49.826323848 +0200
@@ -1,5 +1,5 @@
 #
 #  The base languages, lexicons and voices
-LEXES = cmulex cmu_indic_lang
-LANGS = usenglish cmu_indic_lex
-VOXES = cmu_us_kal16 cmu_us_slt
+LEXES = cmulex
+LANGS = usenglish
+VOXES = cmu_us_rms
diff -ur flite-2.1-release.orig/config/common_make_rules flite-2.1-release/config/common_make_rules
--- flite-2.1-release.orig/config/common_make_rules	2020-04-29 10:44:29.080327038 +0200
+++ flite-2.1-release/config/common_make_rules	2020-04-29 10:45:49.826323848 +0200
@@ -68,7 +68,7 @@
 
 FLITELIBS = $(BUILDDIR)/lib/libflite.a
 FLITELIBFLAGS = -L$(BUILDDIR)/lib -lflite 
-LDFLAGS += -lm $(AUDIOLIBS) $(OTHERLIBS)
+LDLIBS += -lm $(AUDIOLIBS) $(OTHERLIBS)
 
 FULLOBJS = $(OBJS:%=$(OBJDIR)/%)
 ifdef SHFLAGS
@@ -123,7 +123,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,`basename $@`.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os)
+	@ (cd shared_os && $(CC) ${LDFLAGS} -shared -Wl,-soname,`basename $@`.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os $(LDLIBS))
 	@ (cd $(LIBDIR) && ln -s `basename $@.${PROJECT_VERSION}` `basename $@.${PROJECT_SHLIB_VERSION}` )
 	@ (cd $(LIBDIR) && ln -s `basename $@.${PROJECT_SHLIB_VERSION}` `basename $@` )
 	@ rm -rf shared_os
diff -ur flite-2.1-release.orig/tools/Makefile flite-2.1-release/tools/Makefile
--- flite-2.1-release.orig/tools/Makefile	2020-04-29 10:44:29.163659675 +0200
+++ flite-2.1-release/tools/Makefile	2020-04-29 10:45:49.826323848 +0200
@@ -70,9 +70,9 @@
 LOCAL_CLEAN = $(BINDIR)/find_sts $(BINDIR)/flite_sort $(TOP)/bin
 
 $(BINDIR)/find_sts: find_sts_main.o $(FLITELIBS) 
-	$(CC) $(CFLAGS) -o $@ find_sts_main.o $(FLITELIBFLAGS) $(LDFLAGS)
+	$(CC) $(CFLAGS) ${LDFLAGS} -o $@ find_sts_main.o $(FLITELIBFLAGS) $(LDLIBS)
 $(BINDIR)/flite_sort: flite_sort_main.o $(FLITELIBS)
-	$(CC) $(CFLAGS) -o $@ flite_sort_main.o $(FLITELIBFLAGS) $(LDFLAGS)
+	$(CC) $(CFLAGS) ${LDFLAGS} -o $@ flite_sort_main.o $(FLITELIBFLAGS) $(LDLIBS)
 makescripts:
 	@ cp -p $(SCRIPTS) $(TOP)/bin