FS#19199 - [enet] needs to be compiled with -fPIC on x86_64
Attached to Project:
Community Packages
Opened by Sven-Hendrik Haase (Svenstaro) - Wednesday, 21 April 2010, 17:11 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 21 April 2010, 17:59 GMT
Opened by Sven-Hendrik Haase (Svenstaro) - Wednesday, 21 April 2010, 17:11 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 21 April 2010, 17:59 GMT
|
Details
Description:
During compilation of enet I get "/usr/bin/ld: packet.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC" and also linking against enet fails and shared libraries are not created. This is because enet is not compiled with -fPIC on x86_64. It can be fixed by using these lines instead: CFLAGS="-fPIC ${CFLAGS}" ./configure --prefix=/usr make || return 1 gcc -fPIC -Wl,-soname,libenet.so.2 -shared -o libenet.so.2 *.o Why did the maintainer put the last gcc line in there, by the way? Shouldn't the shared libraries be made by make? |
This task depends upon
Closed by Ionut Biru (wonder)
Wednesday, 21 April 2010, 17:59 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#19115
Wednesday, 21 April 2010, 17:59 GMT
Reason for closing: Duplicate
Additional comments about closing: