Brian W. Barrett
95e4b2aef7
* libltdl/config/ltmain.m4sh [darwin]: Use otool64 if otool fails.
2007-01-28 15:13:25 +00:00
Dave Brolley
afa7deb340
* libltdl/ltdl.c (lt_dlexit): Make sure that 'cur' is not NULL
...
before checking that it is still in the list.
* tests/lt_dlexit.at: New test.
* Makefile.am (TESTSUITE_AT): Adjust.
(check-local): Also depend on libltdl/libltdlc.la.
(check-recursive): Removed, unnecessary use of Automake
internals.
2007-01-28 14:55:01 +00:00
Mike Frysinger
b7a0f78052
* libltdl/config/ltmain.m4sh (func_mode_link): Pass through
...
`-p' and `-fprofile-*' for GCC.
2007-01-28 14:18:59 +00:00
Ralf Wildenhues
bb9ec35b3c
* libltdl/libltdl/lt_system.h: Adjust copyright years.
2007-01-28 13:40:25 +00:00
Charles Wilson
a08ebfdf40
* libltdl/libltdl/lt__private.h (LT_GLOBAL_DATA) [__CYGWIN__]:
...
Also define on Cygwin.
* libltdl/libltdl/lt_system.h (LT_SCOPE) [__CYGWIN__]: Likewise.
2007-01-28 13:33:27 +00:00
Ralf Wildenhues
f8bc8895c4
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [ cygwin, mingw ]
...
<export_symbols_cmds>: Avoid shell expansion of '/s/.*' through
double expansion, in case there is a 'S:' drive.
Report by Charles Wilson.
2007-01-28 13:03:47 +00:00
Ralf Wildenhues
d1d4262854
Introduce a new test keyword `recursive' for tests that create a
...
modified `libtool' script and run the suite on this script. All
tests with the keyword `libtool' are (by definition) suitable to
be used here.
* tests/cmdline_wrap.at: New test.
* Makefile.am: Adjust.
* tests/testsuite.at (LT_ESCAPE): New macro: clone of Autoconf
AS_ESCAPE that does not escape `$'.
(LT_AT_CHECK): New macro: print a command-to-be-run while
expanding parameters but nothing else.
* tests/stresstest.at: Use LT_AT_CHECK. Create some files to
expose erroneous globbing errors with `-export-symbols-regex',
similar to those reported by Charles Wilson. Use `eval' and
adjusted quoting so the expansion doesn't already happen in the
testsuite commands.
* HACKING: Update.
2007-01-28 12:43:37 +00:00
Ralf Wildenhues
baf8599e6f
Assume C89 for included headers, and throughout the testsuite.
...
* NEWS: Update.
* libltdl/argz.c: Do not include strings.h nor memory.h, include
string.h unconditionally.
Patch by Simon Josefsson <jas@extundo.com>.
* libltdl/libltdl/lt__private.h: Likewise.
* libltdl/m4/ltdl.m4 (LTDL_INIT): Do not check for string.h,
strings.h, memory.h.
* tests/cdemo/configure.ac: Assume presence of math.h.
* tests/cdemo/foo.c: Likewise.
* tests/demo/configure.ac: Likewise for math.h, string.h.
Assume 'const'. Drop obsolete AC_EXEEXT.
* tests/demo/dlmain.c: Likewise.
* tests/demo/foo.c: Likewise.
* tests/depdemo/configure.ac: Likewise.
* tests/depdemo/l4/l4.c: Likewise.
* tests/f77demo/configure.ac: Likewise. Also drop obsolete
AC_OBJEXT.
* tests/fcdemo/configure.ac: Likewise.
* tests/mdemo/configure.ac: Likewise.
* tests/mdemo/foo1.c: Likewise.
* tests/mdemo/foo2.c: Likewise.
* tests/mdemo2/configure.ac: Likewise.
* tests/pdemo/configure.ac: Likewise.
* tests/pdemo/longer_file_name_dlmain.c:
* tests/pdemo/longer_file_name_foo.c: Likewise.
* tests/pdemo/longer_file_name_foo2.c: Likewise.
* tests/tagdemo/configure.ac: Likewise.
* tests/tagdemo/foo.cpp: Likewise.
2007-01-27 16:45:40 +00:00
Reuben Thomas
a4e7c8d41b
* doc/libtool.texi (Inter-library dependencies): Fix typo.
2007-01-23 23:48:55 +00:00
Ralf Wildenhues
af00446d40
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS) [cygwin, mingw]:
...
Use `lib -OUT' rather than `lib /OUT' to avoid MSYS path
translation mangling. Report by Christopher Hulbert.
* THANKS: Update.
2007-01-21 16:15:36 +00:00
Ralf Wildenhues
4d8e7a3784
* libltdl/config/ltmain.m4sh (func_mode_compile): Accept
...
suffixes matching `[fF][09].', for Fortran.
* tests/suffix.test: Also test F90, F95, f03, F03.
2007-01-21 14:57:58 +00:00
Ralf Wildenhues
d4bb0e52ea
* Makefile.am (EXTRA_DIST): Add ChangeLog.2006.
...
* ChangeLog.2006: New, rotated, from..
* ChangeLog: ..here.
2007-01-21 14:42:58 +00:00
Ralf Wildenhues
0a6649d9e1
* doc/libtool.texi: Typo fixes.
...
* TODO: Likewise.
2007-01-21 14:34:01 +00:00
Ralf Wildenhues
490d8a6e4f
* tests/link-order2.at: Define our override `sin' function with
...
C binding even if $CC is a C++ compiler. Skip the test with g++
as its command line driver reorders `-lm'.
* tests/search-path.at: Declare `inflate' with C binding.
* tests/stresstest.at: Avoid unused variable warnings.
2006-12-14 20:59:26 +00:00
Ralf Wildenhues
a22d0bd7ff
* tests/link-order2.at: Simplify logic to be a bit more self
...
documenting. Suggested by Gary V. Vaughan.
2006-11-07 17:53:22 +00:00
Ralf Wildenhues
84748dd914
* tests/link-order2.at: Add missing $bindir setting. Prevent
...
compiler optimization of sqrt call. Fix logic inversion and
add some comments about this stunt. Add a test with reversed
library link order that should fail if the system has a libm.
Report by Patrick Welche.
2006-10-27 22:57:00 +00:00
Ralf Wildenhues
8b77562fee
Assume presence of a config header in all files, to provoke
...
test failures on all systems.
* libltdl/lt__alloc.c: Likewise.
* libltdl/libltdl/lt__dirent.h: Likewise.
* libltdl/libltdl/lt__glibc.h: Likewise.
* libltdl/libltdl/lt__private.h: Likewise.
* libltdl/libltdl/lt__strl.h: Likewise.
* tests/recursive.at: Use AC_CONFIG_HEADERS.
* tests/nonrecursive.at: Likewise. Invoke autoheader.
* HACKING: Adjust.
Report by Patrick Welche.
2006-10-26 20:39:04 +00:00
Paul Eggert
a68608ef1f
* doc/libtool.texi (Distributing libltdl): In recursive and
...
nonrecursive mode, a config header is now required.
* libltdl/argz.c: Remove check for HAVE_CONFIG_H, to conform
to gnulib's policy of including config.h unconditionally.
2006-10-24 20:33:38 +00:00
Ralf Wildenhues
aa546b46c0
* tests/link-order2.at: New test to show one case where ordering
...
of depdepls on the command line matters.
* Makefile.am: Adjust.
2006-10-24 20:30:05 +00:00
Ralf Wildenhues
33755ffbf5
* tests/tagtrace.test: SKIP if `autoconf --trace' exits 63 or 1,
...
for various possible (valid) error cases. Also output stderr,
to help with analysis.
2006-10-24 20:25:36 +00:00
Ralf Wildenhues
148027b94c
* NEWS: Account for recent multilib fix.
...
* tests/search-path.at: New test, to provide at least a weak
test.
* Makefile.am: Update.
2006-10-24 20:17:38 +00:00
Ralf Wildenhues
cdf3665cb0
* libtoolize.m4sh (func_fixup_Makefile): Fix missing
...
substitution for nonrecursive mode. Remove otherwise-empty
continuation lines in the output file.
Report by Bob Friesenhahn.
2006-10-24 20:07:35 +00:00
Peter O'Gorman
bd9ae5e61b
* libltdl/config/ltmain.m4sh: Add -F* to flags that are passed
...
to the linker.
Reported by SIGOURE Benoit <sigoure.benoit@lrde.epita.fr>
2006-10-22 14:10:33 +00:00
Peter O'Gorman
a3440cbca2
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): Improve
...
multilib support.
Reported by Kate Minola <kate01123@gmail.com> and others.
2006-10-19 05:06:14 +00:00
Eric Blake
65e173f8cb
* libltdl/ltdl.c (load_deplibs): Avoid memory leak on failure.
...
(unload_deplibs): Avoid memory leak on cleanup.
2006-10-13 14:11:18 +00:00
Ralf Wildenhues
997601f675
* libltdl/m4/libtool.m4 (func_mode_compile): Accept files with
...
extension `.f9?'.
* tests/suffix.test: Test `f95'.
2006-09-20 19:08:22 +00:00
Ralf Wildenhues
e6b8918f7e
* libltdl/config/ltmain.m4sh (func_mode_uninstall): Use
...
`func_source' consistently.
2006-09-20 18:15:06 +00:00
Ralf Wildenhues
786ef35a4e
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]
...
[k*bsd*-gnu ]: Fix brown paper bag: save and restore `libdir'.
2006-09-18 05:49:39 +00:00
Ralf Wildenhues
7eb81349b1
* tests/duplicate_deps.at: New file. Test circular depending
...
convenience archives (currently failing).
* Makefile.am: Update.
Report by Stefan Traby <stefan@hello-penguin.com>.
2006-09-17 20:02:15 +00:00
Ralf Wildenhues
8f951c011f
* libltdl/m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
...
[ openbsd ]: Set `hardcode_direct_absolute', to prefer rpath
over putting absolute file names in NEEDED entries.
* NEWS: Update.
Reported by Jake Meuser and others.
2006-09-17 19:30:15 +00:00
Ralf Wildenhues
a47ab0fc66
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]
...
[ k*bsd*-gnu ]: Test if ld sets DT_RUNPATH; in that case, set
shlib_overrides_runpath to `yes'. Fixes test failure of new
test on Gentoo GNU/Linux.
2006-09-17 19:27:14 +00:00
Ralf Wildenhues
7105a8d04e
* tests/shlibpath.at: New file, with...
...
(shlibpath_overrides_runpath): ...new test.
* Makefile.am: Update.
2006-09-17 19:26:28 +00:00
Ralf Wildenhues
0aa2626475
* tests/destdir.at: New file.
...
* Makefile.am: Adjust.
2006-09-12 18:02:32 +00:00
Ralf Wildenhues
6b9e072561
* tests/inherited_flags.at: Drop ${parameter}' for
$parameter'
...
where appropriate, for improved `testsuite -x' output.
2006-09-11 21:35:25 +00:00
Ralf Wildenhues
6ae279553a
* libltdl/ltdl.c: Move LT__UNUSED before parameter name, for g++
...
3.2.3 (on MinGW).
* libltdl/loaders/dld_link.c, libltdl/loaders/dlopen.c,
libltdl/loaders/load_add_on.c, libltdl/loaders/loadlibrary.c,
libltdl/loaders/preopen.c, libltdl/loaders/shl_load.c: Likewise.
2006-09-04 17:43:37 +00:00
George Bosilca
8a17ccd68d
Make libltdl work when compiled with a C++ compiler.
...
* libltdl/lt__alloc.c, libltdl/lt_dlloader.c, libltdl/ltdl.c,
libltdl/slist.c, libltdl/libltdl/lt__alloc.h,
libltdl/libltdl/lt_error.h, libltdl/libltdl/slist.h,
libltdl/loaders/dld_link.c, libltdl/loaders/dlopen.c,
libltdl/loaders/dyld.c, libltdl/loaders/load_add_on.c,
libltdl/loaders/loadlibrary.c, libltdl/loaders/preopen.c,
libltdl/loaders/shl_load.c, tests/stresstest.at,
tests/testsuite.at, tests/f77demo/foo.h, tests/fcdemo/foo.h,
tests/mdemo/foo.h, tests/mdemo/foo1.c, tests/mdemo/foo2.c,
tests/mdemo/main.c: Allow sources to be compiled by a C++
compiler: Cast appropriately, add C linkage for `get_vtable'
functions, do not use C++ keyword `delete'.
2006-09-04 17:27:27 +00:00
George Bosilca
c6b76b4385
* libltdl/config/ltmain.m4sh (func_mode_link): In the dlsym
...
file, define a type for the symbol list, and declare the list
`extern', so that it is extern even if compiled by a C++
compiler. The type definition helps avoid a compiler warning
against anonymous extern struct.
* libltdl/libltdl/lt_system.h: Add `extern' to `LT_SCOPE' for
the same reason.
2006-09-04 17:25:15 +00:00
George Bosilca
c7a33e176b
* libltdl/argz_.h: It's __cplusplus, not _cplusplus.
...
* libltdl/libltdl/slist.h: Likewise.
2006-09-04 17:23:30 +00:00
George Bosilca
4936fb4a91
* libltdl/libltdl/lt__glibc.h: Wrap included argz.h in
...
`extern "C"', for broken headers on Cygwin.
2006-09-04 17:21:35 +00:00
Ralf Wildenhues
eb5e2e11ce
* tests/testsuite.at: Test `unset' on a set variable; older
...
bash versions return 1 if the variable was not set.
2006-09-03 15:19:38 +00:00
Ralf Wildenhues
8aabc32cac
* tests/am-subdir.at, tests/early-libtool.at: Fix the LF vs.
...
CRLF related failures on MinGW by grepping for good output
instead of using AT_CHECK's `expout'.
2006-09-03 15:08:12 +00:00
Ralf Wildenhues
44383fc00f
Drop K&R support from testsuite in favor of C89.
...
* tests/duplicate_members.at: provide declarations of used
functions.
* tests/testsuite.at: Drop unneeded arguments.
* tests/cdemo/main.c: Assume C89.
* tests/demo/dlmain.c: Likewise.
* tests/demo/main.c: Likewise.
* tests/depdemo/main.c: Likewise.
* tests/depdemo/l1/l1.c: Likewise.
* tests/depdemo/l2/l2.c: Likewise.
* tests/depdemo/l3/l3.c: Likewise.
* tests/depdemo/l4/l4.c: Likewise.
* tests/f77demo/cprogram.c: Likewise.
* tests/fcdemo/cprogram.c: Likewise.
* tests/mdemo/mlib.c: Likewise.
* tests/mdemo2/main.c: Likewise.
* tests/pdemo/longer_file_name_dlmain.c: Likewise.
* tests/pdemo/longer_file_name_main.c: Likewise.
* tests/fcdemo/fooc.c: Reformat.
* tests/mdemo/sub.c: Likewise.
2006-09-01 16:19:56 +00:00
Ralf Wildenhues
8ff46a300a
* tests/mdemo/main.c: Fix bogus line in last patch.
2006-08-31 06:20:15 +00:00
Ralf Wildenhues
833a91c5bf
Avoid mixing functions and data pointers in callback functions.
...
* libltdl/ltdl.c (file_worker_func): New type.
(lt_dlforeachfile): Instead of passing a function pointer as a
data pointer, pass a pointer to a file_worker_func pointer.
(foreach_callback_func): Adjust.
* tests/mdemo/main.c: Assume C89. Exercise lt_dlforeachfile.
(callback, try_iterate, my_dirname): New functions.
* tests/mdemo-exec.test: Check for its output.
2006-08-31 05:34:01 +00:00
Ralf Wildenhues
673d0f40fe
* libltdl/libltdl/lt__private.h (__attribute__, LT__UNUSED):
...
New macros.
* libltdl/loaders/dld_link.c: Use LT__UNUSED where
appropriate.
* libltdl/loaders/dlopen.c, libltdl/loaders/load_add_on.c,
libltdl/loaders/loadlibrary.c, libltdl/loaders/preopen.c,
libltdl/loaders/shl_load.c: Likewise.
* libltdl/ltdl.c: Likewise.
(find_file_callback): Fix declaration names to match definition.
(load_deplibs) [!LTDL_DLOPEN_DEPLIBS]: Use separate definition
for less preprocessor clutter.
2006-08-30 04:14:21 +00:00
Ralf Wildenhues
97a1358f43
* Makefile.am (check-local, installcheck-local): Use
...
`TESTSUITEFLAGS' rather than `TESTSUITE_FLAGS', like Autoconf.
* HACKING, README, README.alpha: All uses changed.
2006-08-30 03:18:15 +00:00
Ralf Wildenhues
2166e633ae
* libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
...
sharing with gnulib. Report by Eric Blake.
* libltdl/lt__alloc.c, libltdl/libltdl/lt__dirent.h,
libltdl/libltdl/lt__glibc.h, libltdl/libltdl/lt__private.h,
libltdl/libltdl/lt__strl.h: Likewise.
* HACKING: Update.
2006-08-28 16:02:14 +00:00
Ralf Wildenhues
05f26e584d
* libltdl/config/ltmain.m4sh (func_mode_link): Pass through
...
`--coverage' and `-pg', for GCC. Report by Rainer Keller
<keller@hlrs.de> and Tor Lillqvist <tml@iki.fi>.
2006-08-25 15:08:14 +00:00
Kurt Roeckx
956f27f44c
* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
...
(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
(_LT_LANG_CXX_CONFIG) [k*bsd*-gnu]: kfreebsd*-gnu and
knetbsd*-gnu behave like linux-gnu.
* libltdl/m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): Likewise.
* libltdl/m4/libtool.m4 (_LT_ENABLE_LOCK)
[x86_64-*kfreebsd*-gnu]: Add 32/64 bit bi-arch support.
* NEWS: Update.
2006-08-25 15:04:30 +00:00
Ralf Wildenhues
3f7724490d
* libltdl/m4/libtool.m4 (_LT_CHECK_MAGIC_METHOD) [ mingw,pw32 ]:
...
If `file' is present, use `func_win32_libid' rather than
`objdump -f', to facilitate cross-compilation.
Reported by Pierre Ossman <ossman@cendio.se>.
2006-08-25 14:56:35 +00:00