[reSIProcate] building shared libraries on AMD64
Byron Campen
bcampen at estacado.net
Fri Sep 22 15:14:30 CDT 2006
I see some logic in the build system that was meant to handle this
sort of thing, but it appears to not be working. Could you send the
link-line?
Best regards,
Byron Campen
> hi
>
> when building resiprocate with "Should the resip libraries be built
> shared?" set to "Yes", I got the following error:
>
>
> /usr/bin/ld: obj.debug.Linux.x86_64/AbstractFifo.o: relocation
> R_X86_64_32 against `a local symbol' can not be used when making a
> shared object; recompile with -fPIC
> obj.debug.Linux.x86_64/AbstractFifo.o: could not read symbols: Bad
> value
> collect2: ld returned 1 exit status
> make: *** [obj.debug.Linux.x86_64/librutil.so] Error 1
>
>
> adding the "-fPIC" option solved the problem, but I am not sure if
> this is the correct way to solve it.. patch below:
>
>
> Index: build/Makefile.tools
> ===================================================================
> --- build/Makefile.tools (revision 6553)
> +++ build/Makefile.tools (working copy)
> @@ -41,8 +41,8 @@
> DMANGLE =
> INSTALL = install
> LNDIR = $(shell pwd)/$(ROOT)/build/lndir.sh
> -CFLAGS += -Wall
> -CXXFLAGS += -Wall
> +CFLAGS += -Wall -fPIC
> +CXXFLAGS += -Wall -fPIC
> DFLAG_INTEGRATED = -MMD
> DEBUG_FLAG = -g
> COMPILE_SMALL_FLAG = -Os -fno-inline -fno-keep-static-consts
>
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at list.sipfoundry.org
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2369 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20060922/d6023a90/attachment.bin>
More information about the resiprocate-devel
mailing list