Commit graph

73 commits

Author SHA1 Message Date
bsiegert
e84356da6f Add a special case for f77 on MirBSD. This is what the wrapper scripts call
the f2c frontend. It is not recognized as GCC even though there is a gcc
underneath. Thus, use "-Wl," to introduce linker options.

This unbreaks the build of shared libraries written in Fortran on MirBSD
(exotic combination, yes I know) such as blas.

Bump PKGREVISION.
2012-07-26 12:04:03 +00:00
joerg
25ebe05c64 Revert. Doesn't follow the patch rules for libtool, wasn't discussed
with the OWNER.
2011-09-16 15:08:26 +00:00
hans
d65e84489c Don't add -z text unconditionally to ld on SunOS. This make
-mimpure-text work again, which is needed for several packages that use
assembly optimizations.
2011-09-14 16:35:51 +00:00
bsiegert
1fd6784a99 Add MirBSD support to libtool. The patches are based on the ones from MirPorts,
which uses libtool-1.5.

Reviewed by Alistair G Crooks.
2011-05-14 16:49:45 +00:00
obache
1f93c8cd46 Backport Haiku support, taken from upstream.
(I'm using this patch over 10 months).
2011-03-23 15:46:36 +00:00
markd
3944582c79 Fix support of g95 as the fortran on NetBSD.
patches approved by Joerg.  Bump libtool-base PKGREVISION.
2010-03-17 10:59:44 +00:00
joerg
b09096955c Add some band aid for the not-yet-fully-analyzed issue with sh on
NetBSD. Install a prestine install.sh to not leak our modifications
into packages. Bump revision.
2009-12-18 22:11:10 +00:00
joerg
e04a871f39 Fix another set of broken macro names. Regen patches. 2009-12-17 00:53:52 +00:00
joerg
9b2c160462 Fix a macro name so that the correct C++ linkage on NetBSD and QNX is
used. Bump revision of libtool-base.
2009-12-16 15:27:33 +00:00
joerg
416f555206 Update to libtool-2.2.6b. This switches libtool to the new main branch.
Changes are many, important for pkgsrc:
- much higher speed (up to 30% faster for the overall build of libX11)
- less magic for detection of the tag

The pkgsrc integration of f2c has been changed to be more sane.
libtool itself now depends on the f2c frontend to use proper
auto-configuration and only fakes up the library. This part is
encapsulated in mk/compiler/f2c.mk.
2009-12-15 17:35:36 +00:00
markd
d52041cb82 Add support for g95 on NetBSD to libtool.
Bump PKGREVISION of libtool-base.

OKed by jeorg.
2009-07-08 21:01:43 +00:00
joerg
e769842062 PR 40405: Change soname logic for DragonFly to follow the normal major
only scheme. Properly distinguish FreeBSD and DragonFly case to prevent
further confusion. Differs from the patch in the PR as it forces the
correct branch to be used.

Bump revision of libtool-base. Claim ownership.
2009-03-23 23:03:58 +00:00
chuck
86ddd73c1c update to libtool 1.5.26 using libtool/patches/manual.README procedure:
fixes linking problems on darwin (problems with nmedit, see
http://pogma.com/2008/02/13/nmedit-libtool-exported-symbols/ )
2008-11-19 01:26:52 +00:00
joerg
0e3dacc899 Restore basename override to get the name of the real compiler for the
decision making in libtool. This was lost during the update and broke
the build of shared C++ libraries with SunPro on Solaris. Bump revision
of libtool-base.

Noticed by salo and dmcmahill, tested by dmcmahill.
2007-10-07 12:31:59 +00:00
joerg
ea96bde119 Update to libtool 1.5.24:
- fix regression on DragonFly [patched before]
- don't remove paths to uninstalled libs [patched before]
- initial support for Sun compilers on Linux
- better suport for GNU/kNetBSD and GNU/kFreeBSD
- fixes for GCC multilib on x86_64 and similiar system.
- documentation for --tag.
- getconf ARG_MAX is used to find maximum argument length.
2007-09-15 12:11:44 +00:00
dmcmahill
c69300e480 In the libtool configure script, the basename of the compiler is used
to make decisions about which compiler is being used (gcc, SunPro, etc).
To make this function "correctly" in the presence of the compiler wrapper
scripts, we need to extract the actual compiler command from the wrapper
frame work.  So adapt the section in the configure script which already
attempts to deal with some other compiler wrappers to deal with the pkgsrc
wrappers.

This should address PR pkg/33467 and PR pkg/34581.

Bump PKGREVISION.
2006-12-15 11:28:51 +00:00
tv
8811d4b2aa Fix regression on DragonFly where two config variables were no longer being
set (thinko by person implementing the change between 1.5.18 and 1.5.22).
Bump PKGREVISION.
2006-02-06 18:57:30 +00:00
tv
f6b0d765bb Update libtool to 1.5.22. Too many changes for CVS commit logs; here's
some highlighted changes:

* Fixes minor /tmp race condition bug.
* Integrated Interix support; no longer requires pkgsrc hackery.
* shlibtool is a wrapper using the (now working) "--tag=disable-static".
* Several other bugs fixed, removing some pkgsrc-local changes.
2006-01-30 22:19:56 +00:00
tv
e2af5cd013 libtool-base-1.5.18nb6:
Fix major problem brought to the surface by buildlink3 on Interix.  For C++
or F77 libraries only, the soname did not always make it into the final
binary, resulting in runtime link failures in some cases and runtime linking
with a missing major version in others.

This is unfortunately a flag day for Interix + pkgsrc.  Identifying all the
PKGREVISIONs normally requiring a bump is a little too unwieldy.  However,
existing binaries not experiencing the runtime link failure will continue
to run, but will be linking against the unversioned ".so" at runtime until
the binaries have been rebuilt.

While here, fix a couple wrong assumptions in the libtool config for
Interix.  shlibvar_overrides_runpath should have been "no", and
hardcode_direct should have been "yes".
2005-11-09 18:05:56 +00:00
tv
20fca53c8c Another Interix fix; $soname -> $soname.exp in two places where it was not
fixed before.
2005-07-03 19:42:14 +00:00
tv
58a76526cb libtool-base 1.5.18nb4: Fix a really nasty bug on Interix;
hardcode_libdir_flag_spec used -h rather than the correct -rpath.

Fix provided in private mail by Thorsten Glaser.
2005-07-03 19:01:50 +00:00
tv
2a39efa9b4 libtool-base 1.5.18nb1: Update the patches per manual.README.
While here, since those instructions are still not being heeded, make the
warning comment extremely loud and obnoxious, and put it in both
libtool/Makefile.common and libtool-base/Makefile.
2005-05-18 14:40:04 +00:00
adam
baf35bc697 Changes 1.5.18:
* Fix regression in 1.5.16 to not install libtldl data files from
  `libtoolize --ltdl'ed software packages.
* Bug Fixes.

Changes 1.5.16:
* Allow shell special characters like `$' in source file names, but not
  in object names, to enhance GCJ support.
* Detection of compiler wrappers like distcc/ccache and $host_alias prefix.
* More robust tests for PIC flag, `-c -o', in presence of warnings.
* Bug Fixes, among others for convenience archives regression on Solaris
  and timestamp-preserving `libtoolize --copy --ltdl'.
2005-05-18 11:57:01 +00:00
tv
b6ec46771a Update to 1.5.14, and switch DragonFly to version_type=linux.
Change summary since 1.5.10:

	* ltmain.in: Add -pthread like flags when linking executables too.

	* ltmain.in (func_extract_archives) [darwin]: This didn't actually
	work on a real fat archive, should do now.

	* tests/func_extract_archives.test: remove darwin fat tests which
	did not actually work.

	* ltmain.in (link mode): Allow five digits in version-info

	* ltmain.in (link mode): With piecewise (partial) linking, fix
	intermediate output name for subdir-objects.

	* ltmain.in [darwin]: Don't add installed libs to temp_rpath when
	building executables on darwin, or other systems which use
	hardcode_automatic. It may break our wrapper scripts.

	* ltmain.in [darwin]: Allow -framework foo through when given on
	the command line.

	* ltmain.in [irix]: Preserve processor option for SGI Compiler
	(-r[0-9][0-9]*).

	* ltmain.in: Don't pass through compiler-like thread flags when
	using $LD to do the linking. Use compiler_flags instead.
	Reported by Mark_Andrews@isc.org.

	* libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [linux]: While "parsing"
	/etc/ld.so.conf, skip comments.

	* ltmain.in (func_extract_archives): Not all shells grok
	`read -r' (unnecessary in this case).
	Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de>.

	* libtool.m4 [solaris] (AC_LIBTOOL_PROG_LD_SHLIBS): Use ${wl} for
	whole_archive_flag_spec.  Missing backport reported by Ralf Menzel

	* libtool.m4 [linux] (AC_LIBTOOL_PROG_COMPILER_PIC): match
	$cc_basename, not $CC against icc.  Also, for symmetry match
	icpc* and ecpc* (ia64 version of icpc).

	* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [linux]: Interpret
	`include' statements in toplevel ld.so.conf file.

	* config/ltmain.in (func_mode_link): When linking an installed
	libtool library on the command line using -lfoo we need to find
	the library in the search paths and add it's dependency_libs to
	the link in the conv pass so that any libtool libs listed are
	correctly expanded in the link pass.
2005-03-22 15:12:07 +00:00
tv
b3913b078b Merge DragonFly changes back to the .m4 files as documented in
devel/libtool/patches/manual.README.  Changes:

* don't invent another $version_type when you're just duplicating one
  already in existence (freebsd-elf)

* mark chosen $version_type as a very poor choice; this should be fixed
  to use the libtool-team-supported "linux" type in the future, but will
  cause a binpkg flag day (for DragonFly only) when that happens

PKGREVISION *not* bumped as this is a non-event for all platforms.
2005-01-18 18:51:15 +00:00
grant
3fe88ca7b0 add DragonFly support from patch sent to libtool-patches:
http://lists.gnu.org/archive/html/libtool-patches/2004-12/msg00188.html

tested with gcc2 and gcc3 in-tree compilers.

bump PKGREVISION.
2004-12-21 13:50:23 +00:00
grant
76c3898cdf in the command run when -export-symbols is used on Darwin with xlc,
ensure there is no whitespace on the command line when passing
-install_name to the linker, as this breaks the build.

this fixes the build of audio/libaudiofile and other packages using
-export-symbols on Darwin with xlc.

bump PKGREVISION.
2004-12-18 17:42:24 +00:00
tv
0bd444ae35 Fix C++ linkage on modern NetBSD ELF by using a more standard link command.
Based on jlam's patch to tech-pkg.
Bump PKGREVISION to 1.5.0nb6.
2004-11-11 22:29:03 +00:00
tv
9e2ecafeae Another Interix fubar workaround: C++ libs weren't linking in libtool
because Interix installs completely hosed .la files for libstdc++ and
libsupc++.  Make libtool instead trust g++ to DTRT.
2004-10-12 04:41:39 +00:00
tv
88bf80861f Quick typo fix for previous which made some libraries not build at all
on Interix.
2004-10-11 17:19:53 +00:00
tv
c12846d533 Make -export-symbols work properly under Interix. (The Interix ld(1) does
not implicitly add `_' to -retain-symbols-file values, so we have to add
it manually before doing the physical link.)
2004-10-11 16:51:56 +00:00
tv
f8ff936407 nb2: Make the "echo" substitute work on Interix. Noted by
Hiramatsu Yoshifumi <hiramatu@boreas.dti.ne.jp> in PR pkg/27182.
2004-10-08 17:37:50 +00:00
tv
4bee2600f9 Fix completely hosed test for g++ when CXX=g++. The old test worked fine.
Revert until the hosage is tracked down and eliminated at the source.

(Bump to libtool-1.5.10nb1, and make this the required version.)
2004-10-04 19:48:09 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
grant
1de0489d6f fix shared library names on OpenBSD after upgrade to libtool 1.5.x.
fixes PR pkg/25527 from Adrian Portelli.
2004-05-25 15:17:07 +00:00
danw
4c76be3f7c fix up Darwin patches 2004-04-23 01:17:25 +00:00
tv
c46bf70f73 Update to 1.5.6 (OK'd by skrll).
* In libtool-base, generate shlibtool with a simple sed script; no full
  build is actually needed.

Changelog:

New in 1.5.6: 2004-04-11; CVS version 1.5.5a, Libtool team:
* Installs libltdl files properly in $prefix/share/libtool/libltdl. 1.5.4
  did not install them at all.
* libltdl correctly guesses the extension for loadable modules again.

New in 1.5.4: 2004-04-03; CVS version 1.5.3a, Libtool team:
* Bug fixes.
2004-04-22 14:40:29 +00:00
tv
fb2161906d Update Interix support once more (deliberately no PKGREVISION bump);
add a random image base address for shlibs that's more likely to be "out
of the way" from the rest of the OS and application.
2004-04-21 19:24:49 +00:00
tv
c0823fd31e libtool 1.5.2nb7: Another Interix fix, this time removing any usage of
-fpic or -fPIC, as those produce horribly broken code.  Rather, shlibs
are relocated at runtime by the NT loader, and are compiled without any
special PIC option.
2004-04-21 14:55:32 +00:00
tv
832847381c Move the libtool changes back to .m4 patches, but keep these out of the
way of automatic patching so automake doesn't come into play (and so that
the changes don't show up in the installed autoconf m4 fragments).

Add Interix3 support.  Bump PKGREVISION to 1.5.2nb6.
2004-04-20 18:29:34 +00:00
danw
41cdf1f7c8 disable -all-static for OS X since it just causes a linking error
(http://developer.apple.com/qa/qa2001/qa1118.html)
2004-03-12 00:11:17 +00:00
markd
e7ccabad95 Fix version_type settings for the non-NetBSD platforms in the CXX and
F77 cases.

PKGREVISION++
2004-02-23 10:54:08 +00:00
skrll
6bab53dede Fix the installation of libltdl on non-NetBSD platforms and correct a
typo in version_type for BSD/OS.

PKGREVISION++
2004-02-08 11:21:58 +00:00
skrll
0c157532de The long awaited update libtool to 1.5.2.
Some pkgsrc things
	- Fix PLISTs for packages that use -release
	- Include canonicalisation of a couple of paths for the benefit
	  of qt3-*
	- the normal version=sunos patching
	- fix all library_names_spec for the standard set of symlinks

The libtool things some of which had already made it into pkgsrc libtool.

New in 1.5.2: 2004-01-25; CVS version 1.5.0a, Libtool team:
* lt_dlrealloc is an official part of the libltdl API.
* --tag, --silent and --debug options are preserved and reused when libtool
  calls itself for relinking etc.
* `-pthread' and similar options are honoured when linking shared libraries.
* -no-suppress in compile mode shows compiler output for both PIC and non-PIC
  object compilation.
* New link mode option `-precious-files-regex' to prevent accidental removal
  of files you want to keep, such as test coverage data, from the temporary
  output directory.
* Directories specified in /etc/ld.so.conf are no longer hardcoded on Linux.
* Recognises the 'R' symbol type on Solaris so read-only symbols can be
  exported.
* Bug fixes.

New in 1.5: 2003-04-14; CVS version 1.4e, Libtool team:
* First stable release of multi-language architecture.
* libtool and libltdl support for Mac OS/X.
* libltdl will now use cygwins dlopen API instead of always forcing
  LoadLibrary.
* Support auto-import patch to binutils on cygwin for much improved dll
  support.
* Bug fixes.

New in 1.4.3: 2002-10-13; CVS version 1.4.2a, Robert Boehne:
* The libltdl subdirectory now bootstraps correctly with Automake 1.5.
* srcdir != builddir builds with Automake 1.5 work correctly.
* Support for mips-compaq-nonstopux.
* New command line argument, --preserve-dup-deps prevents removal of
  duplicate dependent libraries.

New in 1.4d: 2002-01-07; CVS version 1.4c, Libtool team:
* Help strings display correctly again.
* Better error messages when library linking fails.
* Better error messages from libltdl when loading fails.
* Better search path management in libltdl with `lt_dlinsertsearchdir' call.
* Support /lib/w32api in recent cygwin releases.
* Support cross compilation to mingw.
* Support for .rc files (Windows resource compiler).
* Improved handling of mingw gcc.
* Improved handling of $PATH with entries containing spaces.
* Improved support for linking with gcc on aix4* and aix5*.
* Improved support for GCC 3.0.
* Initial support for QNX RTOS, UnixWare 7 and OpenUNIX 8.
* Bug fixes to the OpenBSD port.
* Bug fixes.

New in 1.4.2: 2001-09-11; CVS version 1.4.1a, Gary V. Vaughan:
* libltdl now builds on solaris again
* diagnose and warn about not-quite-working combinations of gcc and
  ld on solaris.
* Improved OpenBSD support.
* Improved cygwin support.
* Bugfixes.

New in 1.4.1: 2001-09-03; CVS version 1.4.0a, Libtool team:
* Better error messages from libltdl when loading fails.
* Don't leave here-doc files behind.
* Improved support for OpenBSD.
* Libtool will build with autoconf-2.50 and higher.
* Plug memory management bugs in libltdl.
* Prefer shl_load to dlopen for better operation on HP-UX.

New in 1.4b: 2001-07-09; CVS version 1.4a, Libtool team:
* Now bootstraps with autoconf-2.50 and automake-1.4-p4.
* Always try to build at least a static lib, even if both static and
  shared libs were disabled.
* Full support for C++ compiler.
* Support for GNU gcj compiler.
* libltdl can now load all modules in a given path according to user
  supplied criteria with `lt_dlforeachfile' call.
* Improved support for AIX ia64, djgpp, HPUX, hurd, OpenBSD, sco3.2*.
* Internal mutex handling no longer has namespace clashes on NCR MP-RAS.
* New pdemo and tagdemo tests.
* Bug fixes.
2004-02-05 20:14:05 +00:00
grant
a8f9a4f010 make the library names we create on Darwin be consistent with what
pkgsrc expects and what other platforms use.

note that we can't simply use version_type=sunos, since the Darwin
linker requires libtool to pass -compatibility_version and
-current_version so they are coded into the library header.

this fixes the problem of having libname.x.dylib files which were not
registered in the PLIST, and thus were leftover after package removal.

ok'd by jlam.
2003-10-05 08:19:19 +00:00
grant
da2439d664 set need_version=no on Darwin, from libtool 1.4.3.
This should fix PR 19271 from Jason Thorpe.

ok'd by nick.
2003-01-21 22:43:42 +00:00
jschauma
4d51560769 When checking for operation mode, add a case for 'CC', Irix' C++ compiler.
(Only apply this change to ltmain.sh, this time! ;-)
2002-12-25 19:35:21 +00:00
jschauma
7f56109057 Make sure that shlibs built on IRIX use the same major version number as on
others.
2002-12-23 19:32:12 +00:00
skrll
8186bff76a Fix a bug when inferring the CXX tag which meant that for certain
libraries the following could occur

	- a.out platforms: c++rt0.o would be missing and therefore
	  global contstructors would not work.

	- ELF platforms libstdc++ and libm would not be explicitly
	  linked in.

This affected notably libqt and explains the build failure of kdelibs2 on
arm32.

Bump PKGREVISION and require it.
2002-03-26 16:31:27 +00:00
skrll
bc353bae49 Pull in a change from libtool-current that changes the dependency
recording strategy and a flag (--preserve-dup-deps) to provide the old
stratey if needed. The new strategy reduces the length of the
dependency_libs information stored in .la files and therefore the length
of link lines. This has a positive effect on performance.

Pull across the documentation updates for the change.

Bump the PKGREVISION.

This was tested by building and running both KDE and Gnome.
2002-03-01 15:40:43 +00:00