[Asterisk-Users] static linking
Benjamin West
bewest at gmail.com
Fri May 27 16:47:40 MST 2005
Has anyone tried or had success statically linking Asterisk? I'd like
to do this to deploy to smaller boxes that don't have the toolchain
and libraries to build the thing.
I've tried using statifier (at sf.net) which claims to take a dynamic
executable and transform it into a static executable. It seemed to
work on my box, but when I tried it on the target box it did this:
[root at 0060ef21765a /]# asterisk
Illegal instruction
[root at 0060ef21765a /]#
I've also tried messing with the Makefile. Specifically I did this:
#ASTLINK=-Wl,-E
#SOLINK=-shared -Xlinker -x
ASTLINK=-Wl,-E
SOLINK=-static -Xlinker -x
I also tried leaving the ASTLINK line blank. Both attempts were
unsuccessful and I got unresolved symbol errors.
Thanks,
Ben
More information about the asterisk-users
mailing list