[augeas-devel] [Augeas] #289: configure should be more careful with linker script

Augeas trac at fedorahosted.org
Thu Jul 19 08:23:46 UTC 2012


#289: configure should be more careful with linker script
--------------------+---------------------
 Reporter:  ip1981  |       Owner:  lutter
     Type:  defect  |      Status:  new
 Priority:  major   |   Milestone:  next
Component:  Augeas  |     Version:  0.10.0
 Keywords:          |  Blocked By:
 Blocking:          |
--------------------+---------------------
 configure script tries to guess how to pass "version script" to linker:

 {{{
 VERSION_SCRIPT_FLAGS=
 $(/usr/bin/ld --help 2>&1 | grep -- --version-script >/dev/null) && \
     VERSION_SCRIPT_FLAGS=-Wl,--version-script=
 test "`uname`" == "SunOS" && \
     VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,"
 AC_SUBST(VERSION_SCRIPT_FLAGS)
 AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])

 }}}

 And now it sets "-Wl,-M -Wl," on illumos/solaris *even* if GNU ld is in
 use.

 Here are examples how to detect Solaris linker.
 ($with_gnu_ld is set via libtool macros)

 {{{
 with_sun_ld=no
 if test x$with_gnu_ld = xno; then
     AC_MSG_CHECKING([if the linker ($LD) is Solaris ld])
     if $LD --version 2>&1 | grep -q Solaris ; then
         with_sun_ld=yes
     fi
     AC_MSG_RESULT([$with_sun_ld])
 fi
 AM_CONDITIONAL(GNULD, [test x$with_gnu_ld = xyes])
 AM_CONDITIONAL(SUNLD, [test x$with_sun_ld = xyes])
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/289>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list