]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Tweak link order of some libs to fix build on gcc platforms that have ld flag "-...
authorDaniel Swarbrick <daniel@seventhsignal.de>
Thu, 1 Sep 2011 14:42:00 +0000 (16:42 +0200)
committerDaniel Swarbrick <daniel@seventhsignal.de>
Thu, 1 Sep 2011 14:42:00 +0000 (16:42 +0200)
Makefile.am
libs/esl/Makefile
src/mod/applications/mod_spandsp/Makefile.am

index 10e35c8694f34b7036b8fd85d8f057e95a0a42e4..50cf65fc7a2c1154f75f12ac906ffac83d225882 100644 (file)
@@ -300,7 +300,7 @@ endif
 fs_encode_SOURCES = src/fs_encode.c
 fs_encode_CFLAGS = $(AM_CFLAGS)
 fs_encode_LDFLAGS = $(AM_LDFLAGS) $(CORE_LIBS)
-fs_encode_LDADD = libfreeswitch.la
+fs_encode_LDADD = libfreeswitch.la -lcrypt -lrt
 
 ##
 ## tone2wav ()
@@ -308,7 +308,7 @@ fs_encode_LDADD = libfreeswitch.la
 tone2wav_SOURCES = src/tone2wav.c
 tone2wav_CFLAGS  = $(AM_CFLAGS)
 tone2wav_LDFLAGS = $(AM_LDFLAGS) $(CORE_LIBS)
-tone2wav_LDADD   = libfreeswitch.la
+tone2wav_LDADD   = libfreeswitch.la -lcrypt -lrt
 
 ##
 ## fs_ivrd ()
index 0e6471a70068164728619fa9976f407afda5f473..746f730124294e6129e29b8f471cf49cd62d34fb 100644 (file)
@@ -7,7 +7,7 @@ PICKY=-O2
 CFLAGS=$(BASE_FLAGS) $(PICKY)
 CXXFLAGS=$(BASE_FLAGS)
 MYLIB=libesl.a
-LIBS=-lncurses -lpthread -lesl -lm
+LIBS=-lncurses -lesl -lpthread -lm
 LDFLAGS=-L.
 OBJS=src/esl.o src/esl_event.o src/esl_threadmutex.o src/esl_config.o src/esl_json.o src/esl_buffer.o
 SRC=src/esl.c src/esl_json.c src/esl_event.c src/esl_threadmutex.c src/esl_config.c src/esl_oop.cpp src/esl_json.c src/esl_buffer.c
@@ -32,7 +32,7 @@ testclient: $(MYLIB) testclient.c
        $(CC) $(CC_CFLAGS) $(CFLAGS) testclient.c -o testclient $(LDFLAGS) $(LIBS)
 
 fs_cli: $(MYLIB) fs_cli.c
-       $(CC) $(CC_CFLAGS) $(CFLAGS) fs_cli.c -o fs_cli $(LDFLAGS) -L$(LIBEDIT_DIR)/src/.libs $(LIBS) -ledit
+       $(CC) $(CC_CFLAGS) $(CFLAGS) fs_cli.c -o fs_cli $(LDFLAGS) -L$(LIBEDIT_DIR)/src/.libs -ledit $(LIBS)
 
 %.o: %.c $(HEADERS)
        $(CC) $(CC_CFLAGS) $(CFLAGS) -c $< -o $@
index 7d2b30f69d16ee1fb59d1cbe2689b66313d9dff9..7865ce5164f9d1b5c3c3a296778d5e5b2e49648f 100644 (file)
@@ -12,8 +12,8 @@ SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
 mod_LTLIBRARIES = mod_spandsp.la
 mod_spandsp_la_SOURCES  = mod_spandsp.c udptl.c mod_spandsp_fax.c mod_spandsp_dsp.c mod_spandsp_codecs.c
 mod_spandsp_la_CFLAGS   = $(AM_CFLAGS) -I$(SPANDSP_DIR)/src -I$(TIFF_DIR)/libtiff -I$(SPANDSP_BUILDDIR)/src -I$(TIFF_BUILDDIR)/libtiff -I.
-mod_spandsp_la_LIBADD   = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA) $(TIFF_LA)
-mod_spandsp_la_LDFLAGS  = -avoid-version -module -no-undefined -shared -ljpeg
+mod_spandsp_la_LIBADD   = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA) $(TIFF_LA) -ljpeg -lz
+mod_spandsp_la_LDFLAGS  = -avoid-version -module -no-undefined -shared
 
 $(SPANDSP_LA): $(TIFF_LA) $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
        cd $(SPANDSP_BUILDDIR) && $(MAKE) -j1