static libs for libGL, libGLU, libGLw
William A. Mahaffey III
wam at hiwaay.net
Mon Dec 7 23:54:58 UTC 2015
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.
More information about the freebsd-questions
mailing list