Re: statisch gelinkte binarys

From: Simon 'corecode' Schubert <corecode(at)corecode.ath.cx>
Date: Mon, 9 Sep 2002 11:54:22 +0200

On Mon, 09 Sep 2002 10:53:49 +0200 Christian Damm wrote:

> ich hab ne kurze frage an die programmier bzw. compilier-erfahrenen
> unter euch:
[...]
> kann mir jemand tips geben wie man binaries (am besten im falle von mtree)
> statisch linkt? bzw. wo ich ein statisch gelinktes mtree binary für 4.4 -
> 4.6 FREEBSD downloaden kann?

% grep -C static /usr/share/mk/bsd.prog.mk

.if defined(NOSHARED) && ( ${NOSHARED} != "no" && ${NOSHARED} != "NO" )
LDFLAGS+= -static
.endif

also ein
% cd /usr/src/usr.bin/mtree && make NOSHARED=yes

macht das ganze.

gruesse
  simon

-- 
/"\   http://corecode.ath.cx/#donate
\ /
 \     ASCII Ribbon Campaign
/ \  Against HTML Mail and News

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 09 Sep 2002 - 11:55:47 CEST

search this site