Ignore:
Timestamp:
Nov 10, 2013, 12:42:16 AM (9 years ago)
Author:
Peter
Message:

Fix test of YAT_LT_LINK_IFELSE. The macro/linking worked also against
static library, which is unexpected. When I modified to an library
with more symbols (libyat) I get the error: "relocation..." as
expected. refs #737.

configure.ac: AC_SUBST lt_vc_objdir from libtool
test/defs.sh.in: define dito
test/gen_libmy_static.sh: copy libyat.a rather than creating a small libmy-static.a from scratch.
yat_lt_link_la_ifelse_test.sh: link against theplu::yat::utility::version(void) as libmy-static now just is a alias for libyat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/yat_lt_link_la_ifelse_test.sh

    r3100 r3110  
    5252AC_MSG_CHECKING([whether linking against -lmy-static works])
    5353YAT_LT_LINK_LA_IFELSE([
    54     int foo_static(void);
    55     int my_func(void) { return foo_static(); }
     54namespace theplu {
     55namespace yat {
     56namespace utility {
     57    int version(void);
     58}}}
     59    int my_func(void) { return theplu::yat::utility::version(); }
    5660  ],[
    5761    AC_MSG_RESULT([yes])
    58     AC_MSG_FAILURE
     62    AC_MSG_FAILURE([expected configure to fail])
    5963  ],[
    6064    AC_MSG_RESULT([no])
Note: See TracChangeset for help on using the changeset viewer.