From owner-freebsd-questions Sat Aug 10 15:03:58 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA24757 for questions-outgoing; Sat, 10 Aug 1996 15:03:58 -0700 (PDT) Received: from inga.augusta.de (root@inga.augusta.de [193.175.23.65]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA24692 for ; Sat, 10 Aug 1996 15:03:53 -0700 (PDT) Received: from rabbit by inga.augusta.de with uucp (Smail3.1.29.1 #1) id m0upM6M-004de1C; Sun, 11 Aug 96 00:01 MET DST Received: by rabbit.augusta.de (Smail3.1.29.1 #1) id m0uos1C-0009zgC; Fri, 9 Aug 96 15:54 MET DST Message-Id: Date: Fri, 9 Aug 96 15:54 MET DST X-Newsreader: knews 0.9.6 Organization: Privat Site running FreeBSD References: From: shanee@rabbit.augusta.de (Andreas Kohout) Subject: Re: Static/dynamic linking X-Original-Newsgroups: muc.lists.freebsd.questions In-Reply-To: To: questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article , 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 ---------------------------------------------------------------------------