[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSF sia stuff in 0.4b

	From:  Assar Westerlund <assar@sics.se>
	Date:  11 Jul 2001 02:19:26 +0200

> I only tested with cc and not gcc, but the following further
> obfuscation (relative to 0.4b) of the Makefile.am should make it work.

Getting closer but not quite there:

gcc  -shared -o libsia_krb5.so -L/usr/local/ssl/lib -rpath/usr/local/ssl/lib -rpath/usr/local/lib -rpath /usr/heimdal/lib -Wl,-hidden -Wl,-exported_symbol -Wl,siad_* sia.o posix_getpw.o ../../../lib/krb5/.libs/libkrb5.a ../../../lib/asn1/.libs/libasn1.a -lcrypto ../../../lib/com_err/.libs/libcom_err.a ../../../lib/roken/.libs/libroken.a -lc
collect2: ld returned 1 exit status
-rpath/usr/local/ssl/lib: Unknown flag
/usr/bin/ld: Usage: /usr/bin/ld [options] file [...] 

Changing the  "sed 's,-R,-rpath,g'"  to  "sed 's,-R,-rpath ,g'" gives 
something that does link:
gcc  -shared -o libsia_krb5.so -L/usr/local/ssl/lib -rpath /usr/local/ssl/lib -rpath /usr/local/lib -rpath /usr/heimdal/lib -Wl,-hidden -Wl,-exported_symbol -Wl,siad_* sia.o posix_getpw.o ../../../lib/krb5/.libs/libkrb5.a ../../../lib/asn1/.libs/libasn1.a -lcrypto ../../../lib/com_err/.libs/libcom_err.a ../../../lib/roken/.libs/libroken.a -lc
ostrip -x -z libsia_krb5.so

But I'm not sure that the "-rpath"s are actually right.  I'm pretty sure that 
ld ignores all but the last of multiple -rpaths passed to it and that if you 
actually want multiple directories on the path you need to colon separate them.