[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] trying to compile a static version of linphone

From: Charles Eidsness
Subject: Re: [Linphone-developers] trying to compile a static version of linphone on Debian
Date: Sun, 05 Dec 2004 14:44:47 -0500
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

Hi Oliver,

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[2]: *** [linphone] Erreur 1
> make[2]: Leaving directory `/usr/src/linphone/linphone-0.12.2/gnome'
> make[1]: *** [all-recursive] Erreur 1
> make[1]: Leaving directory `/usr/src/linphone/linphone-0.12.2'
> make: *** [all] Erreur 2
> Olivier

reply via email to

[Prev in Thread] Current Thread [Next in Thread]