Date: Wed, 22 Oct 1997 11:46:22 +0200 From: Martin Cracauer <cracauer@cons.org> To: Jaye Mathisen <mrcpu@cdsnet.net> Cc: hackers@FreeBSD.ORG Subject: Re: Is there any way to build a completely static system? Message-ID: <19971022114622.61668@cons.org> In-Reply-To: <Pine.NEB.3.95.971020134307.2330U-100000@mail.cdsnet.net>; from Jaye Mathisen on Mon, Oct 20, 1997 at 01:44:14PM -0700 References: <Pine.NEB.3.95.971020134307.2330U-100000@mail.cdsnet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In <Pine.NEB.3.95.971020134307.2330U-100000@mail.cdsnet.net>, Jaye Mathisen wrote: > I mean no .so's, nothing. Just the necessare .a's, and all binaries > statically linked... > > Getting the binaries statically linked is easy, but I was hoping NOSHARED > would stop building the .so's for /usr/lib, but it seems to anyway. Look into /usr/share/mk/bsd.lib.mk Around line 115 (in 2.2.2) you find .if !defined(NOPIC) .if defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) _LIBS+=lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} .endif .if defined(INSTALL_PIC_ARCHIVE) _LIBS+=lib${LIB}_pic.a .endif .endif Although it is intended for per-library settings, I looks like globally setting option NOPIC would do what you want. If not, just delete the LIBS+= lines in bsd.lib.mk. Please let me know if it works. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/ BSD User Group Hamburg/Germany http://www.bsdhh.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971022114622.61668>