mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
* NEWS: Account for recent multilib fix.
* tests/search-path.at: New test, to provide at least a weak test. * Makefile.am: Update.
This commit is contained in:
parent
cdf3665cb0
commit
148027b94c
@ -1,5 +1,10 @@
|
||||
2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* NEWS: Account for recent multilib fix.
|
||||
* tests/search-path.at: New test, to provide at least a weak
|
||||
test.
|
||||
* Makefile.am: Update.
|
||||
|
||||
* libtoolize.m4sh (func_fixup_Makefile): Fix missing
|
||||
substitution for nonrecursive mode. Remove otherwise-empty
|
||||
continuation lines in the output file.
|
||||
|
@ -407,6 +407,7 @@ TESTSUITE_AT = tests/testsuite.at \
|
||||
tests/shlibpath.at \
|
||||
tests/static.at \
|
||||
tests/destdir.at \
|
||||
tests/search-path.at \
|
||||
tests/old-m4-iface.at \
|
||||
tests/am-subdir.at \
|
||||
tests/standalone.at \
|
||||
|
1
NEWS
1
NEWS
@ -35,6 +35,7 @@ New in 1.9h: 2005-??-??; CVS version 2.1a, Libtool team:
|
||||
as BeOS.
|
||||
* Initial support for the Sun compiler suite on GNU/Linux.
|
||||
* Improved support for GNU/kFreeBSD and GNU/NetBSD.
|
||||
* Search paths with GCC on multilib systems like x86_64 have been fixed.
|
||||
* Bug fixes.
|
||||
|
||||
New in 1.9f: 2004-10-23; CVS version 1.9e, Libtool team:
|
||||
|
43
tests/search-path.at
Normal file
43
tests/search-path.at
Normal file
@ -0,0 +1,43 @@
|
||||
# Hand crafted tests for GNU Libtool. -*- Autotest -*-
|
||||
# Copyright 2006 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301, USA.
|
||||
|
||||
AT_SETUP([sys_lib_search_path])
|
||||
AT_KEYWORDS([libtool])
|
||||
LDFLAGS="$LDFLAGS -no-undefined"
|
||||
|
||||
AT_DATA([main.c],
|
||||
[[extern int inflate ();
|
||||
int main()
|
||||
{
|
||||
return inflate ();
|
||||
}
|
||||
]])
|
||||
|
||||
$CC $CPPFLAGS $CFLAGS -c main.c
|
||||
eval `$LIBTOOL --config | $EGREP '^(sys_lib_search_path_spec)='`
|
||||
eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
|
||||
for path in $sys_lib_search_path; do
|
||||
if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -L$path -lz
|
||||
then
|
||||
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -lz],
|
||||
[], [ignore], [ignore])
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
AT_CLEANUP
|
Loading…
Reference in New Issue
Block a user