mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-18 14:16:00 +08:00
Skip sys_lib_search_path on systems without libz.
* tests/search-path.at (sys_lib_search_path): Autotest needs at least one AT_CHECK executed in a test group. So if we haven't found -lz anywhere, as may happen with cross-compilers, skip the test. * THANKS: Update. Report by Alon Bar-Lev. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
bbd9f2903d
commit
44ee284ba2
@ -1,5 +1,13 @@
|
|||||||
2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
|
Skip sys_lib_search_path on systems without libz.
|
||||||
|
* tests/search-path.at (sys_lib_search_path): Autotest needs at
|
||||||
|
least one AT_CHECK executed in a test group. So if we haven't
|
||||||
|
found -lz anywhere, as may happen with cross-compilers, skip the
|
||||||
|
test.
|
||||||
|
* THANKS: Update.
|
||||||
|
Report by Alon Bar-Lev.
|
||||||
|
|
||||||
Fix execute mode test to actually expose cwrapper failures.
|
Fix execute mode test to actually expose cwrapper failures.
|
||||||
* tests/execute-mode.at (execute mode): Actually also test the
|
* tests/execute-mode.at (execute mode): Actually also test the
|
||||||
cwrapper on the arguments.
|
cwrapper on the arguments.
|
||||||
|
1
THANKS
1
THANKS
@ -68,6 +68,7 @@
|
|||||||
and generally assist in the libtool maintainership process:
|
and generally assist in the libtool maintainership process:
|
||||||
|
|
||||||
Alexei Sheplyakov varg@theor.jinr.ru
|
Alexei Sheplyakov varg@theor.jinr.ru
|
||||||
|
Alon Bar-Lev alon.barlev@gmail.com
|
||||||
Andreas Schwab schwab@suse.de
|
Andreas Schwab schwab@suse.de
|
||||||
Andrey Slepuhin pooh@msu.ru
|
Andrey Slepuhin pooh@msu.ru
|
||||||
Aneesh Kumar K.V kvaneesh@hotmail.com
|
Aneesh Kumar K.V kvaneesh@hotmail.com
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# search-path.at -- test sys_lib_search_path_spec -*- Autotest -*-
|
# search-path.at -- test sys_lib_search_path_spec -*- Autotest -*-
|
||||||
#
|
#
|
||||||
# Copyright (C) 2006 Free Software Foundation, Inc.
|
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
||||||
# Written by Ralf Wildenhues, 2006
|
# Written by Ralf Wildenhues, 2006
|
||||||
#
|
#
|
||||||
# This file is part of GNU Libtool.
|
# This file is part of GNU Libtool.
|
||||||
@ -41,13 +41,20 @@ int main()
|
|||||||
$CC $CPPFLAGS $CFLAGS -c main.c
|
$CC $CPPFLAGS $CFLAGS -c main.c
|
||||||
eval `$LIBTOOL --config | $EGREP '^(sys_lib_search_path_spec)='`
|
eval `$LIBTOOL --config | $EGREP '^(sys_lib_search_path_spec)='`
|
||||||
eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
|
eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
|
||||||
|
no_libz=:
|
||||||
for path in $sys_lib_search_path; do
|
for path in $sys_lib_search_path; do
|
||||||
if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -L$path -lz
|
if $LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -L$path -lz
|
||||||
then
|
then
|
||||||
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -lz],
|
AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main main.$OBJEXT -lz],
|
||||||
[], [ignore], [ignore])
|
[], [ignore], [ignore])
|
||||||
|
no_libz=false
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# If -lz doesn't exist (hello, cross compiler!), we need a dummy test.
|
||||||
|
if $no_libz; then
|
||||||
|
AT_CHECK([exit 77])
|
||||||
|
fi
|
||||||
|
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
Loading…
Reference in New Issue
Block a user