Dear George Danchev, you wrote:
> Hi All,
Hi George, thanks for joining the discussion!
>
> the correct tweak for icmake/libraries should be:
>
> run(GCC + " -shared -Wl,-z,def,-soname," + libsomajor +
> " -o " + destDir + libsoshared + " */os/*.o " + g_sharedLibReq );
Changing the library construction command according to the patch runs fine,
but still causes problems with that --as-needed flag. I've been looking for
more info about that flag but not very much is available. Also, I don't see
where this --as-needed flag enters either our bobcat library construction or
the construction of bobcatlcgen. The ld man-page doesn't show, but I guess
it's possible (as the man page refers to more extensive ld-info pages) to set
up a default --as-needed option for ld, maybe using the environment.
But I've no idea how to solve the problem caused by the --as-needed flag,
except maybe the following: add --no-as-needed to the bobcat library
construction command. E.g.,
gcc -shared -Wl,--no-as-needed,-z,def,-soname,libbobcat.so.2 -o
tmp/lib/libbobcat.so.2.10.02 */os/*.o -lX11 -lssl -lreadline -lmilter
-L/usr/lib/libmilter
This seems to work (i.e., I didn't use a globally set --as-needed option), so
until we have more information about the way --as-needed works and how we can
prevent unresolved references I'd suggest to add the --no-as-needed ld option
to the library construction command.
Any further thoughts about this?
Cheers,
--
Frank B. Brokken
Center for Information Technology, University of Groningen
(+31) 50 363 9281
Public PGP key: http://pgp.surfnet.nl
Key Fingerprint: DF32 13DE B156 7732 E65E 3B4D 7DB2 A8BE EAE4 D8AA
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]