Browse Source

fix building by using correct library link order and add missing stdc++ library

master
parent
commit
ace228ed61
  1. 13
      asterisk-espeak/asterisk-espeak.patch
  2. 2
      asterisk-espeak/asterisk-espeak.spec

13
asterisk-espeak/asterisk-espeak.patch

@ -1,6 +1,6 @@
Index: Makefile
--- Makefile.orig 2008-01-23 10:13:34 +0100
+++ Makefile 2008-03-21 15:01:23 +0100
+++ Makefile 2008-03-22 11:15:36 +0100
@@ -45,7 +45,7 @@
OPTIMIZE=-O6
@ -10,6 +10,15 @@ Index: Makefile
CFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE
CFLAGS+=$(OPTIMIZE)
@@ -60,7 +60,7 @@
CFLAGS+=-DASTERISK_VERSION=0
endif
-LIBS+=-lm -lespeak -lsndfile -lsamplerate
+LIBS+=-lespeak -lsndfile -lsamplerate -lstdc++ -lm
all: $(APPS)
@@ -74,7 +74,7 @@
$(CC) -pipe $(INCLUDE) $(CFLAGS) -c -o app_espeak.o app_espeak.c
@ -21,7 +30,7 @@ Index: Makefile
@if [ -d $(ASTERISKMODDIR) ]; then \
Index: app_espeak.c
--- app_espeak.c.orig 2008-01-29 15:32:21 +0100
+++ app_espeak.c 2008-03-21 15:02:25 +0100
+++ app_espeak.c 2008-03-22 11:15:19 +0100
@@ -41,10 +41,13 @@
0 == Asterisk 1.0.x
2 == Asterisk 1.2.x

2
asterisk-espeak/asterisk-espeak.spec

@ -32,7 +32,7 @@ Class: EVAL
Group: VoIP
License: GPL
Version: 0.4
Release: 20080321
Release: 20080322
# list of sources
Source0: http://switch.dl.sourceforge.net/asterisk-espeak/asterisk-espeak-%{version}.tar.gz

Loading…
Cancel
Save