From owner-freebsd-questions@freebsd.org Mon Dec 7 23:54:58 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 076309D3602 for ; Mon, 7 Dec 2015 23:54:58 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CB3C51E32 for ; Mon, 7 Dec 2015 23:54:57 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-213-32.knology.net [216.186.213.32] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id tB7NsslZ019489 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 7 Dec 2015 17:54:56 -0600 To: FreeBSD Questions !!!! From: "William A. Mahaffey III" Subject: static libs for libGL, libGLU, libGLw Message-ID: <56661C4E.9000105@hiwaay.net> Date: Mon, 7 Dec 2015 18:00:24 -0553.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2015 23:54:58 -0000 I am trying to build a statically linked version of some inhouse code, see below from the festivities: ar xv /home/wam/V8/Cnx/test/junk/cart/unstaggered/bfc/pre/../lib/R4/opteron/libmaiPre.a Main.o x - Main.o g++5 -o /usr/local/bin/PreBFCGL.opteron.TEST.static -static -static-libgcc -static-libstdc++ -Wl,-s,--allow-multiple-definition,-rpath=/usr/local/lib/gcc5 Main.o -L/h ome/wam/V8/Cnx/test/junk/cart/unstaggered/bfc/pre/../lib/R4/opteron -L/home/wam/lib/R4 -L/usr/lib64/openmotif -Wl,--start-group -lmaiPre -lPre -lPrecxx -lutils -lftn dmp -lftnO2pre -lftnO2 -lBC_Phi -license -Wl,--end-group -lMemIO -lMotif -lStdHash -lmpi -ltet -lgomp -lMrm -lXm -lXt -lGL -lGLU -lGLw -lX11 -ljpeg -lpng -lz -lm -Bst atic -lgfortran && \rm -f Main.o /usr/local/bin/ld: cannot find -lGL /usr/local/bin/ld: cannot find -lGLU /usr/local/bin/ld: cannot find -lGLw collect2: error: ld returned 1 exit status 1 error *** [/usr/local/bin/PreBFCGL.opteron.TEST.static] Error code 1 (continuing) `usual' not remade because of errors. I have shared objects for the libraries mentioned, but no static libraries (libGL.a, etc.). Are these available in another package ? If not, is there a way to tell the linker to link everything statically *except* those 3 libraries ? If not, other suggestions :-) ? TIA & have a good one. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.