Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2015 18:00:24 -0553.75
From:      "William A. Mahaffey III" <wam@hiwaay.net>
To:        FreeBSD Questions !!!! <freebsd-questions@freebsd.org>
Subject:   static libs for libGL, libGLU, libGLw
Message-ID:  <56661C4E.9000105@hiwaay.net>

Next in thread | Raw E-Mail | Index | Archive | Help


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.




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?56661C4E.9000105>