Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 96 15:54 MET DST
From:      shanee@rabbit.augusta.de (Andreas Kohout)
To:        questions@freebsd.org
Subject:   Re: Static/dynamic linking
Message-ID:  <m0uos1C-0009zgC@rabbit.augusta.de>
In-Reply-To: <Pine.BSI.3.95.960808011212.1027A-100000@free.emmert.com>
References:  <Pine.BSI.3.95.960808011212.1027A-100000@free.emmert.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSI.3.95.960808011212.1027A-100000@free.emmert.com>,
	steve@emmert.com (Steve Emmert) writes:
 
> Is there a way to make a executable that dynamic linked to the standard
> libs and static linked to Motif libs. I am trying to make a port of
> xmtoolbar, when I go -static my executable size jumps from 40Kbytes
> to 1.7Mbytes 8-(.

First, make a port :-)

Second, from /usr/share/mk/bsd.port.mk:

.if defined(MOTIF_STATIC)
MOTIFLIB?=      ${X11BASE}/lib/libXm.a
.else
MOTIFLIB?=      -L${X11BASE}/lib -lXm
.endif


-- 
Greeting, Andy
                                                    running FreeBSD-current
---------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0uos1C-0009zgC>