[Mesa-dev] [Bug 63269] explicitly symlinking libraries without libtool breaks OpenBSD build

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 11 06:46:19 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=63269

--- Comment #2 from Jonathan Gray <jsg at openbsd.org> ---
Hi Emil,

I saw your series of patches on the list and pulled them into my branch with
some other fixes required to build with and I could indeed complete a build.

Unfortunately since then the way libraries are created has been changed to use
an ld option that isn't present in the version of binutils included in OpenBSD
(or the one in FreeBSD).  --dynamic-list seems to have been introduced in
binutils 2.18 from what I can make out.

/bin/sh ../../../../../libtool  --tag=CXX   --mode=link g++  -g -O2 -Wall
-fno-strict-aliasing -fno-builtin-memcmp -g -O0  -module -avoid-version
-Wl,--version-script=./radeon.link -shared -no-undefined
-Wl,--dynamic-list=./radeon.dyn  -L/usr/local/lib -o r300_dri.la -rpath
/usr/mesa/lib/dri drm_target.lo
../../../../../src/mesa/drivers/dri/common/libdricommon.la
../../../../../src/mesa/libmesagallium.la
../../../../../src/gallium/auxiliary/libgallium.la
../../../../../src/gallium/state_trackers/dri/drm/libdridrm.la
../../../../../src/gallium/winsys/radeon/drm/libradeonwinsys.la
../../../../../src/gallium/drivers/galahad/libgalahad.la
../../../../../src/gallium/drivers/trace/libtrace.la
../../../../../src/gallium/drivers/rbug/librbug.la
../../../../../src/gallium/drivers/r300/libr300.la -L/usr/X11R6/lib -ldrm
-lexpat -lm  -lpthread  -L/usr/X11R6/lib -ldrm_radeon  
libtool: link: g++ -shared  -fPIC -DPIC   .libs/drm_target.o 
-Wl,--whole-archive
../../../../../src/mesa/drivers/dri/common/.libs/libdricommon.a
../../../../../src/mesa/.libs/libmesagallium.a
../../../../../src/gallium/auxiliary/.libs/libgallium.a
../../../../../src/gallium/state_trackers/dri/drm/.libs/libdridrm.a
../../../../../src/gallium/winsys/radeon/drm/.libs/libradeonwinsys.a
../../../../../src/gallium/drivers/galahad/.libs/libgalahad.a
../../../../../src/gallium/drivers/trace/.libs/libtrace.a
../../../../../src/gallium/drivers/rbug/.libs/librbug.a
../../../../../src/gallium/drivers/r300/.libs/libr300.a -Wl,--no-whole-archive 
-L/usr/local/lib -L/usr/X11R6/lib -ldrm -lexpat -lm -lpthread -ldrm_radeon  
-O2 -O0 -Wl,--version-script=./radeon.link -Wl,--dynamic-list=./radeon.dyn   -o
.libs/r300_dri.so
/usr/bin/ld: unrecognized option '--dynamic-list=./radeon.dyn'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
Makefile:669: recipe for target 'r300_dri.la' failed
gmake[3]: *** [r300_dri.la] Error 1
gmake[3]: Leaving directory
'/usr/users/jsg/src/mesa/src/gallium/targets/r300/dri'
Makefile:493: recipe for target 'all-recursive' failed
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory '/usr/users/jsg/src/mesa/src/gallium/targets'
Makefile:479: recipe for target 'all-recursive' failed
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory '/usr/users/jsg/src/mesa/src'
Makefile:530: recipe for target 'all-recursive' failed
gmake: *** [all-recursive] Error 1

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140311/481e7ec7/attachment.html>


More information about the mesa-dev mailing list