From: Peter Rosin Date: Fri, 15 Aug 2008 06:54:55 +0000 (+0200) Subject: dllimport when the lib is shared and not linking with -static X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee8c181987478752a9432a903cf7febbf761d034;p=thirdparty%2Flibtool.git dllimport when the lib is shared and not linking with -static * tests/stresstest.at: Link with main.lo when liba is shared and linking main with -no-install. Signed-off-by: Peter Rosin Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index c81c844cc..11abf321c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-15 Peter Rosin + + * tests/stresstest.at: Link with main.lo when liba is shared + and linking main with -no-install. + 2008-08-15 Peter Rosin * tests/link-order.at [MSVC]: Always dllimport exported diff --git a/tests/stresstest.at b/tests/stresstest.at index ee5fd293a..c9fee10b9 100644 --- a/tests/stresstest.at +++ b/tests/stresstest.at @@ -252,9 +252,12 @@ do [0],[ignore],[ignore]) for st in '' '-static' '-no-install' do - case $st,$l3 in - ,-rpath*) mst= ;; - *) mst=-static ;; + # if -static is not passed, and the library is shared, then we have + # to use -DLIBA_DLL_IMPORT, thus main.lo (and not main-static.lo). + case $st,$l3 in + -static,*) mst=-static ;; + *,-rpath*) mst= ;; + *) mst=-static ;; esac LT_AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS $st -o "$rel"main$EXEEXT "$rel"main$mst.lo "$rel"sub2/liba.la],