Date: Tue, 05 Jun 2007 11:23:51 +0100 From: Robin Becker <robin@reportlab.com> To: freebsd-questions@FreeBSD.org Subject: complete static link Message-ID: <466539B7.3000004@chamonix.reportlab.co.uk>
next in thread | raw e-mail | index | archive | help
I'm trying to get a particular utility compiled statically so I can embed it in a distribution package. It's just a part of lib tiff. I tried various things with ./configure --disable-shared --enable-static, but couldn't eliminate the dynamic dependencies. In the end I tried this gcc -O2 -Wall -W -o tiffcp tiffcp.o ../libtiff/.libs/libtiff.a ../port/.libs/libport.a /usr/lib/libz.a /usr/lib/libm.a /usr/lib/libc.a and although the libz/libm dependencies are gone I still depend on libc.so.6 (or 4). Is there some esy way to do this? Also I get warnings about f_prealloc anyone know what that means? -- Robin Becker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?466539B7.3000004>