[fpc-pascal] set SONAME in LINUX shared libraries

Werner Bochtler werner.bochtler at zkrd.de
Wed Aug 20 09:32:44 CEST 2008


Hi,

Can anyone give me a hint how to set the 'soname'in FPC shared libraries
for LINUX?

I have tried to pass "-soname libTest.so.0" via the k-switch to the
linker but this doesn't seem to work.

The ppas.sh file (see excerpt below) shows that the passed option
"-soname libTest.so.0" is overwritten by an automatic generated "-soname
libTest.so".

---
/usr/bin/ld -b elf32-i386 -m elf_i386 -soname=libTest.so.0 -init
FPC_LIB_START -fini FPC_LIB_EXIT -soname libTest.so -shared -L. -o
../bin/libTest.so ../bin/link.res
----

Many thanks in advance,

Werner




More information about the fpc-pascal mailing list