author | wwalker |
Mon, 18 Aug 2008 14:18:12 +0000 | |
changeset 1318 | 12cb6b42e660 |
parent 1308 | ed0b1d282d8c |
permissions | -rw-r--r-- |
1308 | 1 |
--- espeak-1.37-source/src/Makefile-orig 2008-08-08 20:04:39.001556000 -0500 |
2 |
+++ espeak-1.37-source/src/Makefile 2008-08-08 20:04:42.246443000 -0500 |
|
3 |
@@ -15,7 +15,7 @@ LIB_VERSION = 1 |
|
1002 | 4 |
LIBTAG = $(LIB_VERSION).$(RELEASE) |
5 |
||
1308 | 6 |
# Use SONAME_OPT=-Wl,h, on Solaris |
7 |
-SONAME_OPT=-Wl,-soname, |
|
1318
12cb6b42e660
Make sure SONAME is set/used when building eSpeak shared library.
wwalker
parents:
1308
diff
changeset
|
8 |
+SONAME_OPT=-h |
1002 | 9 |
|
1308 | 10 |
# Use EXTRA_LIBS=-lm on Solaris |
11 |
EXTRA_LIBS = |
|
12 |
@@ -60,15 +60,15 @@ libespeak_SOURCES = speak_lib.cpp compil |
|
1002 | 13 |
|
14 |
SRCS1=$(speak_SOURCES) |
|
15 |
OBJS1=$(patsubst %.cpp,%.o,$(SRCS1)) |
|
1308 | 16 |
-LIBS1=-lstdc++ $(LIB_AUDIO) -lpthread $(EXTRA_LIBS) |
17 |
+LIBS1=$(LIB_AUDIO) -lpthread $(EXTRA_LIBS) |
|
1002 | 18 |
|
19 |
SRCS2=$(libespeak_SOURCES) |
|
20 |
OBJS2=$(patsubst %.cpp,x_%.o,$(SRCS2)) |
|
1308 | 21 |
-LIBS2=-lstdc++ $(LIB_AUDIO) -lpthread |
22 |
+LIBS2=$(LIB_AUDIO) -lpthread |
|
1002 | 23 |
|
24 |
SRCS3 = espeak.cpp |
|
25 |
OBJS3=$(patsubst %.cpp,%.o,$(SRCS3)) |
|
1308 | 26 |
-LIBS3=-lstdc++ -L . -lespeak |
27 |
+LIBS3=-L . -lespeak |
|
1002 | 28 |
|
1308 | 29 |
CXXFLAGS=-O2 |
1002 | 30 |
|
1308 | 31 |
@@ -92,7 +92,7 @@ x_%.o: %.cpp |
32 |
-I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o |
|
1002 | 33 |
|
34 |
$(LIB_NAME): $(OBJS2) |
|
1308 | 35 |
- $(CXX) -shared $(SONAME_OPT)$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2) |
1318
12cb6b42e660
Make sure SONAME is set/used when building eSpeak shared library.
wwalker
parents:
1308
diff
changeset
|
36 |
+ $(CXX) -G $(SONAME_OPT)$(LIB_NAME).$(LIB_VERSION) -o $@ $(OBJS2) $(LIBS2) |
1002 | 37 |
|
38 |
$(STATIC_LIB_NAME): $(OBJS2) |
|
39 |
$(AR) cqs $(STATIC_LIB_NAME) $(OBJS2) |