<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - explicitly symlinking libraries without libtool breaks OpenBSD build"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63269#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - explicitly symlinking libraries without libtool breaks OpenBSD build"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63269">bug 63269</a>
              from <span class="vcard"><a class="email" href="mailto:jsg@openbsd.org" title="Jonathan Gray <jsg@openbsd.org>"> <span class="fn">Jonathan Gray</span></a>
</span></b>
        <pre>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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>