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... |
| 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. This can also be seen while running the `configure` script: |
| 7 | {{{ |
| 8 | checking whether runtime library dirs can be specified... -R |
| 9 | }}} |
| 10 | which, more verbosely, looks like this in config.log: |
| 11 | {{{ |
| 12 | configure:15979: checking whether runtime library dirs can be specified |
| 13 | configure:16001: result: -R |
| 14 | }}} |
| 15 | and ends up getting put in the following variables: |
| 16 | {{{ |
| 17 | ag_cv_test_ldflags=-R |
| 18 | }}} |
| 19 | {{{ |
| 20 | AG_LDFLAGS='-R' |
| 21 | }}} |
| 22 | The second one is subst'd into `autoopts/autoopts-config.in` here: |
| 23 | {{{ |
| 24 | ldopts="@AG_LDFLAGS@" |
| 25 | }}} |
| 26 | The conftest that substs it from the configure script comes from the `AG_TEST_LDFLAGS` macro in `config/ag_macros.m4`: |
| 27 | {{{ |
| 28 | AC_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 |
| 32 | echo 'int main() { return 0; }' > conftest.$ac_ext |
| 33 | libs="${LIBS}" |
| 34 | LIBS="${LIBS} -Wl,-R/tmp" |
| 35 | if (eval $ac_link) > /dev/null 2>&1 |
| 36 | then echo '-Wl,-R${libdir}' ; rm -f conftest* ; exit 0 ; fi |
| 37 | LIBS="${libs} -R/tmp" |
| 38 | if (eval $ac_link) > /dev/null 2>&1 |
| 39 | then echo '-R' ; rm -f conftest* ; exit 0 ; fi |
| 40 | rm -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 | }}} |
| 56 | So 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... |