Alain Greppin dixit:
$ diet gcc -o dso.o -c dso.c
This is already wrong, you MUST use -fPIC for shared objects
on ELF systems at least, ALWAYS.
bye,
//mirabilos
--
Support mksh as /bin/sh and RoQA dash NOW!
‣ src:bash (232 (249) bugs: 0 RC, 176 (190) IN, 56 (59) MW, 0 FP)
‣ src:dash (65 (73)
Package: dietlibc-dev
Version: 0.31-1.2
Severity: important
I cannot build a shared library linked with dietlibc on amd64 (but it works on
i386). Here is an example with the error message:
$ cat dso.c
int toto1(){}
$ diet gcc -o dso.o -c dso.c
$ diet gcc -shared -o libdso.so dso.o
/usr/bin/ld:
2 matches
Mail list logo