On Wed, 10 Aug 2005, Dennis Peterson wrote: ; Dale Walsh said: ; > ; > On Aug 10, 2005, at 08:12 AM, Andr?s Yacopino wrote: ; > ; >> I have solaris too and compiled with gcc, this works great. I ; >> compiled it with this parameters: ; >> ; >> First i do: ; >> ; >> in /usr/local/lib ; >> ; >> ln -s /opt/sfw/gcc-3/lib/libgcc_s.so.1 libgcc_s.so.1 ; >> ; >> Then ; >> ; >> ./configure --build=sparc-sun-solaris2.9 LDFLAGS='-L/usr/local/lib' ; > ; > Wouldn't it be easier to just do: ; > ; > ./configure --build=sparc-sun-solaris2.9 LDFLAGS='-L/opt/sfw/gcc-3/lib' ; > ; > and skip making the link??? ; > ; >> Greetings, ; >> Andres ; ; Or running crle to include that directory in the default lib path. ; ; dp
... or use -static-libgcc to remove the dependency # ldd /opt/clamav/sbin/clamd libclamav.so.1 => /opt/clamav/lib/libclamav.so.1 libz.so.1 => /usr/lib/64/libz.so.1 libbz2.so.1 => /usr/lib/64/libbz2.so.1 libgmp.so.3 => /opt/GNUmp/lib/libgmp.so.3 libsocket.so.1 => /usr/lib/64/libsocket.so.1 libnsl.so.1 => /usr/lib/64/libnsl.so.1 libpthread.so.1 => /usr/lib/64/libpthread.so.1 libresolv.so.2 => /usr/lib/64/libresolv.so.2 libc.so.1 => /usr/lib/64/libc.so.1 libdl.so.1 => /usr/lib/64/libdl.so.1 libmp.so.2 => /usr/lib/64/libmp.so.2 libthread.so.1 => /usr/lib/64/libthread.so.1 /usr/platform/SUNW,UltraAX-i2/lib/sparcv9/libc_psr.so.1 I use: CPPFLAGS="-I/opt/GNUmp/include -I/opt/sendmail/include" \ LDFLAGS="-static-libgcc -L/opt/GNUmp/slib -L/opt/sendmail/lib" \ ./configure ... etc. A.
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html