o Juha Heinanen [05/24/08 10:51]:
> when i check Makefile.defs, it correctly has:
> 
> USE_SPANDSP    = yes
> # statically link spandsp library? 
> #   (might need adjusting spandsp lib path LIBSPANDSP_LDIR - may be /usr/lib)
> LIBSPANDSP_STATIC = yes
> LIBSPANDSP_LDIR = /usr/lib/
> 
> but i don't see trace of spandsp in core compilation or linking:
this is now exported as well.

> 
> g++ -c -o LowcFE.o LowcFE.cpp  -D_DEBUG -D_THREAD_SAFE -D_REENTRANT 
> -DSEMS_VERSION='"1.0.0-pre-r982M"' -DARCH='"i386"' -DOS='"linux"' -DOpenSER  
> -g -O2 -Wall -Wno-reorder -fPIC -g -O2 
> gcc -o sems sems.o AmAdvancedAudio.o AmApi.o AmArg.o AmAudio.o AmAudioFile.o 
> AmAudioMixIn.o AmB2ABSession.o AmB2BSession.o AmBufferedAudio.o 
> AmCachedAudioFile.o AmCallWatcher.o AmConferenceChannel.o 
> AmConferenceStatus.o AmConfig.o AmConfigReader.o AmDtmfDetector.o AmEvent.o 
> AmEventQueue.o AmIcmpWatcher.o AmJitterBuffer.o AmMediaProcessor.o 
> AmMultiPartyMixer.o AmPlaylist.o AmPlayoutBuffer.o AmPlugIn.o 
> AmPrecodedFile.o AmPromptCollection.o AmRingTone.o AmRtpAudio.o AmRtpPacket.o 
> AmRtpReceiver.o AmRtpStream.o AmSdp.o AmServer.o AmSessionContainer.o 
> AmSession.o AmSipDialog.o AmSipDispatcher.o AmSipMsg.o AmThread.o AmUAC.o 
> AmUtils.o AmZRTP.o log.o LowcFE.o  -Wl,-Bsymbolic-functions -lm -ldl 
> -rdynamic -lpthread -lstdc++  -lstdc++ 
> 
> also conference/Makefile correctly has:
> 
> module_ldflags = -lmysqlpp
> module_cflags  = -DUSE_MYSQL -I/usr/include/mysql++ -I/usr/include/mysql
> 
> compilation of conference app went ok:
> 
> make[4]: Entering directory `/usr/src/sems/apps/conference'
> g++ -g -O2 -Wall -Wno-reorder -fPIC -g -O2  -DUSE_MYSQL 
> -I/usr/include/mysql++ -I/usr/include/mysql -DUSE_MYSQL 
> -I/usr/include/mysql++ -I/usr/include/mysql  -D_DEBUG -D_THREAD_SAFE 
> -D_REENTRANT -DSEMS_VERSION='"1.0.0-pre-r982M"' -DARCH='"i386"' 
> -DOS='"linux"' -DOpenSER  -I ../../core -DUSE_MYSQL -I/usr/include/mysql++ 
> -I/usr/include/mysql -I ../../core -DUSE_MYSQL -I/usr/include/mysql++ 
> -I/usr/include/mysql -c Conference.cpp -o Conference.o
> gcc -o conference.so Conference.o   -shared -Wl,-Bsymbolic-functions -lm -ldl 
> -rdynamic -lpthread
> 
> but notice that linking does not include -lmysqlpp.
the module_ldflags was added to LD_FLAGS, not LIB_LDFLAGS. But this 
Makefile is still executed several times so it's added several times to 
the flags (which in that case does not harm).

high time to switch to autotools.

Stefan

> 
> -- juha

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to