* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): better handling
of predefined values for lt_cv_sys_lib_search_path_spec and
lt_cv_sys_lib_dlsearch_path_spec.
Peter O'Gorman [Wed, 30 Jan 2008 06:40:58 +0000 (06:40 +0000)]
Backport darwin support reorganization from HEAD.
* libtool.m4 [darwin]: Check for nmedit and dsymutil with
AC_CHECK_TOOL, use -single_module by default (can be turned off
with the -multi-module linker flag or by setting the
LT_MULTI_MODULE environment variable. If it is available use
-exported_symbols_list instead of nmedit to remove symbols.
* ltmain.in [darwin]: Use -single_module by default.
Ralf Wildenhues [Sat, 19 Jan 2008 08:48:04 +0000 (08:48 +0000)]
Backport ISO C++ support from HEAD, 2006-03-17 and 2005-09-12 patches.
* tagdemo/configure.ac (HAVE_NAMESPACES, HAVE_IOSTREAM):
New tests for ISO C++ features. Reimplementation of similar
macros from the autoconf archive.
* tagdemo/foo.cpp, tagdemo/main.cpp: Adjusted. Provide dummy
`std' namespace for the HPPA C++ compiler.
Ralf Wildenhues [Sat, 12 Jan 2008 13:58:44 +0000 (13:58 +0000)]
* ltmain.in (link mode): Fix warning about -l and -L for
archives and objects as output, to not trigger for *.la files.
Non-convenience archives are diagnosed later on.
Ralf Wildenhues [Fri, 11 Jan 2008 19:15:57 +0000 (19:15 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) <exclude_expsyms>:
Also exclude `_GLOBAL__F[ID]_.*'. Also set for the C++ tag.
Fixes esp. demo/helldl build failure with GCC on AIX.
Report by Rainer Tammer.
Ralf Wildenhues [Thu, 15 Nov 2007 19:36:41 +0000 (19:36 +0000)]
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.
Backport from 2006-08-31 fix in HEAD.
Report by Maciej BliziĆski <maciej.blizinski@gmail.com>.
Ralf Wildenhues [Mon, 12 Nov 2007 19:45:16 +0000 (19:45 +0000)]
Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
* libtool.m4 (_LT_LINKER_BOILERPLATE, AC_LIBTOOL_LINKER_OPTION)
(AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Remove conftest.dSYM
directory.
Report and analysis by Jeff Squyres and Peter O'Gorman.
* libltdl/ltdl.c (try_dlopen): Do not test array address of
sys_dlsearch_path against NULL, rather test for nonempty
contents.
Coverity reports CID 148 and CID 149 via Jeff Squyres.
* libtool.m4 (_LT_AC_LOCK) [ solaris ]: Cater to old Sparc
Solaris 7 ld that does not understand `-64'.
Report by Vincent Lefevre <vincent@vinc17.org>.
* ltmain.in (execute mode): Do not unset locale variables that
have not been set previously. Do not use uninitialized
$lt_unset. Report by <deckrider@gmail.com>.
* doc/libtool.texi (Link mode) <-no-install>: Mention that this
still generates a wrapper script on systems without hardcoding.
* THANKS: Update.
Report by Simon Josefsson.
Ralf Wildenhues [Sun, 18 Mar 2007 18:45:19 +0000 (18:45 +0000)]
* mdemo/Makefile.am (libmlib_la_LDFLAGS): Add
`-export-symbols-regex ".*"' because the convenience libltdl
uses export markers and thus turns off autoexport on w32. Fixes
test failures for Cygwin and MinGW.
Bug analysis by Charles Wilson.
Ralf Wildenhues [Sun, 18 Mar 2007 18:09:57 +0000 (18:09 +0000)]
* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER)
(AC_DEPLIBS_CHECK_METHOD, _LT_AC_LANG_CXX_CONFIG)
(AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
(AC_LIBTOOL_PROG_LD_SHLIBS) [ interix ]: When matching for
interix, accept version range [3-9] instead of 3.
* NEWS: Update.
Report by Martin Koeppe <mkoeppe@gmx.de>.
Ralf Wildenhues [Sun, 18 Feb 2007 15:00:00 +0000 (15:00 +0000)]
* tests/dryrun.test: ls -l in MSYS sometimes shows year,
not time, for really fresh files. Add sleep 1 calls at
strategic places. Fixes test failure on MinGW.
Ralf Wildenhues [Sat, 17 Feb 2007 08:23:50 +0000 (08:23 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [ linux ]
<whole_archive_flag_spec>: For Sun C/C++ 5.9, do not add
/dev/null as dummy object, it fails with GNU ld version
2.16.91.0.7-amd-sles9. Report by Terry D. Dontje.
* THANKS: Update.
Ralf Wildenhues [Sun, 11 Feb 2007 13:37:02 +0000 (13:37 +0000)]
* libtool.m4 (_AS_TEST_PREPARE, AS_EXECUTABLE_P): m4_defun
these macros, if undefined, with modified copies from Autoconf
2.59.
(LT_AC_PROG_SED): Use AS_EXECUTABLE_P, not $as_executable_p,
this is an internal Autoconf detail.
Charles Wilson [Sun, 28 Jan 2007 13:33:52 +0000 (13:33 +0000)]
* libltdl/ltdl.c (LT_GLOBAL_DATA) [__CYGWIN__]: Also define on
Cygwin.
(LT_READTEXT_MODE): Ensure proper textmode fopen is used on
Cygwin.
* libltdl/ltdl.h (LT_SCOPE) [__CYGWIN__]: Also define on Cygwin.
Ralf Wildenhues [Sun, 28 Jan 2007 13:04:20 +0000 (13:04 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_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.
Ralf Wildenhues [Sun, 21 Jan 2007 16:16:05 +0000 (16:16 +0000)]
* libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [cygwin, mingw]:
Use `lib -OUT' rather than `lib /OUT' to avoid MSYS path
translation mangling. Report by Christopher Hulbert.
* THANKS: Update.
Ralf Wildenhues [Fri, 25 Aug 2006 14:56:56 +0000 (14:56 +0000)]
* libtool.m4 (AC_DEPLIBS_CHECK_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>.
Albert Chin [Wed, 2 Aug 2006 13:35:37 +0000 (13:35 +0000)]
* libtool.m4 (AC_LIBTOOL_POSTDEP_PREDEP) [ solaris ]:
Don't set $postdeps to "-lCstd -lCrun" if
"-library=stlport4" set in CXXFLAGS as stlport4 C++
library incompatible with Cstd C++ library. Use
'-library=Cstd -library=Crun' instead of '-lCstd -lCrun'.
Ralf Wildenhues [Sat, 24 Jun 2006 05:00:22 +0000 (05:00 +0000)]
* libtool.m4 (_LT_COMPILER_BOILERPLATE, _LT_LINKER_BOILERPLATE):
Rewrite to not use unchecked `printf', for old systems like
SunOS 4.1.
(AC_LIBTOOL_COMPILER_OPTION, AC_LIBTOOL_LINKER_OPTION)
(AC_LIBTOOL_PROG_CC_C_O, AC_LIBTOOL_PROG_LD_SHLIBS): Likewise.
(AC_LIBTOOL_LANG_C_CONFIG): Adjust: use literal newlines in
`lt_simple_compile_test_code' and `lt_simple_link_test_code'.
(AC_LIBTOOL_LANG_CXX_CONFIG, AC_LIBTOOL_LANG_F77_CONFIG)
(AC_LIBTOOL_LANG_GCJ_CONFIG, AC_LIBTOOL_LANG_RC_CONFIG):
Likewise.
Bug report by Bruce Becker and Mark Andrews.
Ralf Wildenhues [Mon, 12 Jun 2006 05:25:26 +0000 (05:25 +0000)]
* ltmain.in (link mode): Disregard
`hardcode_libdir_flag_spec_ld' if we're using `$CC' to link.
* libtool.m4 () [ hpux10, hpux11; hppa*64*, ia64* ]
<hardcode_libdir_flag_spec_ld>: Removed.
Reported by Roger While <simrw@sim-basis.de>.
Ralf Wildenhues [Thu, 1 Jun 2006 19:09:56 +0000 (19:09 +0000)]
* ltmain.in: Convert *each* occurrence of `compile_command',
`finalize_command', `relink_command', and `link_command',
that can conceivably be longer than 4000 bytes, to newline-
separated arguments before feeding to sed, to cater for sed
implementations with limited line lengths. Convert back
afterwards.
* tests/link.test: Accommodate for trailing white space
resulting from above change.
This addresses an issue reported by Albert Chin on 2001-05-27:
http://lists.gnu.org/archive/html/libtool/2001-05/msg00159.html