Changes between Version 1 and Version 2 of Ticket #42728, comment 9


Ignore:
Timestamp:
Mar 9, 2014, 12:10:40 AM (10 years ago)
Author:
cooljeanius (Eric Gallager)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42728, comment 9

    v1 v2  
    44autogen seems to have been updated (port version: 5.17.4, new version: 5.18.2)
    55}}}
    6 but idk for sure about that... Edit: just tried updating the port myself; it fails to build, but the `autoopts-config` script still gets generated, and it still contains the stray `-R` flag...
     6but idk for sure about that... Edit: just tried updating the port myself; it fails to build, but the `autoopts-config` script still gets generated, and it still contains the stray `-R` flag. This can also be seen while running the `configure` script:
     7{{{
     8checking whether runtime library dirs can be specified... -R
     9}}}
     10which, more verbosely, looks like this in config.log:
     11{{{
     12configure:15979: checking whether runtime library dirs can be specified
     13configure:16001: result: -R
     14}}}
     15and ends up getting put in the following variables:
     16{{{
     17ag_cv_test_ldflags=-R
     18}}}
     19{{{
     20AG_LDFLAGS='-R'
     21}}}
     22The second one is subst'd into `autoopts/autoopts-config.in` here:
     23{{{
     24      ldopts="@AG_LDFLAGS@"
     25}}}
     26The conftest that substs it from the configure script comes from the `AG_TEST_LDFLAGS` macro in `config/ag_macros.m4`:
     27{{{
     28AC_DEFUN([AG_TEST_LDFLAGS],[
     29  AC_MSG_CHECKING([whether runtime library dirs can be specified])
     30  AC_CACHE_VAL([ag_cv_test_ldflags],[
     31    ag_cv_test_ldflags=`exec 2> /dev/null
     32echo 'int main() { return 0; }' > conftest.$ac_ext
     33libs="${LIBS}"
     34LIBS="${LIBS} -Wl,-R/tmp"
     35if (eval $ac_link) > /dev/null 2>&1
     36then echo '-Wl,-R${libdir}' ; rm -f conftest* ; exit 0 ; fi
     37LIBS="${libs} -R/tmp"
     38if (eval $ac_link) > /dev/null 2>&1
     39then echo '-R' ; rm -f conftest* ; exit 0 ; fi
     40rm -f conftest* ; exit 1`
     41    if test $? -ne 0 || test -z "$ag_cv_test_ldflags"
     42    then ag_cv_test_ldflags=no
     43    fi
     44  ]) # end of CACHE_VAL of ag_cv_test_ldflags
     45  AC_MSG_RESULT([${ag_cv_test_ldflags}])
     46  if test "X${ag_cv_test_ldflags}" != Xno
     47  then
     48    AG_LDFLAGS="@S|@{ag_cv_test_ldflags}"
     49  else
     50    AG_LDFLAGS=''
     51  fi
     52  AC_SUBST([AG_LDFLAGS])
     53
     54]) # end of AC_DEFUN of AG_TEST_LDFLAGS
     55}}}
     56So the thing following the `-R` is supposed to be either `${libdir}` or `/tmp`... I wonder why `${libdir}` does not get used properly? Anyways I guess I will have to ask upstream...