]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-c.sh (need_lc): Preserve allow_undefined_flag.
authorAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 08:05:22 +0000 (08:05 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 4 Sep 2000 08:05:22 +0000 (08:05 +0000)
ChangeLog
ltcf-c.sh

index 136f0549ba96e36dab1f7c316657fc2c3d25fc5f..40ce0e0cd8751c55349763dc0cbe9e6879e008a4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-09-04  Alexandre Oliva  <aoliva@redhat.com>
 
+       * ltcf-c.sh (need_lc): Preserve allow_undefined_flag.
+
        * tests/*.test (CONFIG_SITE): Ultrix's /bin/sh fails on
        `. /dev/null'.  Set CONFIG_SITE to /dev/null/config/site, to make
        sure we pick a non-existent file.
index c9f229400b9df35b21387b31c2a7b113f50b1eaf..e57abb1cb2b243ee47c7d4b8b787d3ca36285dfd 100644 (file)
--- a/ltcf-c.sh
+++ b/ltcf-c.sh
@@ -671,10 +671,12 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then
        verstring=
        output_objdir=.
        libname=conftest
+       save_allow_undefined_flag=$allow_undefined_flag
        allow_undefined_flag=
        if { (eval echo ltcf-c.sh:need_lc: \"$archive_cmds\") 1>&5; (eval $archive_cmds) 2>&1 | grep " -lc " 1>&5 ; }; then
          need_lc=no
        fi
+       allow_undefined_flag=$save_allow_undefined_flag
       else
        cat conftest.err 1>&5
       fi