[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] trying to compile a static version of linphone
Re: [Linphone-developers] trying to compile a static version of linphone on Debian
Sun, 05 Dec 2004 14:44:47 -0500
Mozilla Thunderbird 0.9 (Windows/20041103)
That's too bad, I was hoping it was related to that dlopen warning.
Unfortunately I can't give you a definitive answer (maybe someone else
can) but here are some things you can try:
- make sure you are using the --enable-static and --disable-shared flags
when you run configure
- use the --with-gnu-ld flag when you run configure
- use "make CFLAGS+=-static LDFLAGS+=-static" instead of just "make"
- move all of the dynamic libraries out of the lib directory of your
toolchain before compiling (leave only *.a and the crt?.o) (that's an
ugly hack but gets the job done)
Hope something there helps,
Olivier Kaloudoff wrote:
> Hi Charles,
> just tested your trick, it fixed the following Warning,
> that does not appear anymore:
> /usr/src/linphone/linphone-0.12.2/coreapi/arts.c:44: warning: Using
> 'dlopen' in statically linked applications
> requires at runtime the shared librarie
> s from the glibc version used for linking
> but did not remove the fatal one :-( :
> /usr/bin/ld: cannot find -lgcc_s
> collect2: ld returned 1 exit status
> make: *** [linphone] Erreur 1
> make: Leaving directory `/usr/src/linphone/linphone-0.12.2/gnome'
> make: *** [all-recursive] Erreur 1
> make: Leaving directory `/usr/src/linphone/linphone-0.12.2'
> make: *** [all] Erreur 2