[PD] Still with the Gem! -Resolved-

thewade pdman at aproximation.org
Thu Mar 18 16:08:08 CET 2004

I LOVE this Jacub, he is my rockstar in spandex pants and big hair!
Check this out!

My reported bug was that Gem,s configure script was trying to find GL by compiling conftest.c with the following command:
gcc -o conftest -g -O2   -L/usr/X11R6/lib conftest.c -lGL  -Wl,-shared -Wl,-export-dynamic -lXxf86vm -lXext -lX11
(as taken from configure)
but my problems seem obvious to Jacub, read below!

------- Additional Comments From jakub at redhat.com  2004-03-18 05:18 -------
That is to be expected.  Never use -Wl,-shared, but -shared.
With -Wl,-shared, you don\'t tell the gcc driver that you are trying
to build a shared library, so it throws in crt objects for executable
etc., but you tell the linker to create a shared library with that.
With -shared, you tell the gcc driver that you are linking a shared
library and it will take care of the details (putting in correct crt
files, libraries etc. and of course also passing -shared to ld).

Hurra! Im off to modify the configure script!
Thanks for all your help. I wonder why nobody else has this problem?

More information about the Pd-list mailing list