Commit graph

65 commits

Author SHA1 Message Date
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
danw
b1b23e1240 Update Darwin patches to match libtool 1.4.3 2003-09-25 02:09:03 +00:00
jschauma
032fd314e2 Do the right thing on irix and use version=sunos
as recommended by Nick Hudson.
2003-03-27 18:56:57 +00:00
skrll
5d1a5a5fda Don't use -nodefaultlibs when linking C libraries - this was for old broken
ELF toolchains. glib2 on -current will now link correctly as -pthread will
have an effect.

PKGREVISION++
2003-01-31 20:33:51 +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
wiz
c8a29388ad Unbreak libtool (hi Jan!) 2002-12-25 03:30:26 +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
grant
6220163ace fix shared library names on FreeBSD to be like NetBSD and Solaris in
preparation for FreeBSD pkgsrc support.

bump PKGREVISION.

ok'd by nick.
2002-11-17 11:55:01 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
schmonz
84ab2d3d0a Make libtool work on Darwin, based on the patches in pkg/16104 by
Jeff Putsch <jdputsch@attbi.com>. Also repair a typo that had prevented
'-fno-common' from being passed along (found and fixed by skrll).

Bump PKGREVISION.

Approved by skrll.
2002-05-21 14:03:36 +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
e0af29a32d Fix the pattern that matches valid library files so that it allows '.'
in the library name. This fixes pkg/15981 from Dan McMahill
<dmcmahill@netbsd.org>

Patch up the test configure scripts while we're here.

Bump the PKGREV, but don't require it just yet.
2002-03-21 09:00:12 +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
skrll
350f63106d Allow objects of the form libfoo_pic.a to be linked into shared objects as
well as the normal shared objects. This means that the new toolchain, that
links in libgcc_pic.a, will build proper shared objects again.

Bump to nb5 and make this the required version.

Fixes pkg/15120 from Matthias Scheler <tron@colwyn.zhadum.de>
2002-01-04 15:20:25 +00:00
skrll
1b93af249c Fix a typo that has there for ages so that the previous fix for new
toolchains actually works.

I had reports that the problem that the definition of
"output_verbose_link_cmd" was supposed to fix had indeed been fixed.
(Never believe everything you read)
2001-10-26 10:58:02 +00:00
skrll
1034b557a9 Fix ltcf-cxx.sh to work on -current/new toolchains. That is make sure that
/usr/lib/crtbeginS.o and /usr/lib/crtendS.o make it into
{pre,post}dep_objects.

Fixes pkg/14353 from Witold J. Wnuk <witek@pd37.warszawa.sdi.tpnet.pl>

Tested as "still" working on 1.5.2.

Bump minor number of pkg and make pkgsrc depend on this version.
2001-10-26 07:47:38 +00:00
skrll
f74c9eaa84 There is only one system library path: /usr/lib. Don't include /lib and
/usr/local/lib.

Discussed with Johnny Lam <jlam@netbsd.org> and Bernd Ernesti
<veego@netbsd.org>

Problem reported by Jeremy C. Reed <reed@reedmedia.net> on tech-pkg
2001-10-04 07:58:02 +00:00
enami
4aa395440f Make this compile on NetBSD/newsmips (i.e., mipseb). At least amanda
can be built now.
2001-07-06 00:55:10 +00:00
skrll
52396237fe Fix --mode=execute quoting problem.
Bump to nb2. Fix has been sent to libtool maintainers.
2001-06-20 08:10:49 +00:00
skrll
2ade3dfe16 Update libtool to a newer snapshot.
Notable changes are:

	* Fix memory leak in libltdl
	* Handle large dependency_libs entries in .la files better
	* Integration of a lot of the NetBSD changes
2001-06-14 14:55:45 +00:00
abs
614825756d Handle shared libraries the same on Linux as Solaris and NetBSD 2001-05-22 10:31:07 +00:00
agc
4c970f9765 If a tag has not been given, and we're using a compiler which is not one
of the ones with which libtool was built, attempt to infer the compiler
from the first word of the command line passed to libtool.

We only reach this test if libtool is about to die with a message about
lacking a specific tag, so this change is the least intrusive that can
be made.

This means that different CC options can now be recognised when compiling.

Bump version number to nb6
2001-05-09 10:24:11 +00:00
skrll
8e7c2715a6 Fix problem where CXX and CXXFLAGS were incorrectly used when --tag=CC is
specified.
2001-05-08 13:38:41 +00:00
skrll
5c5f1dbbce Implement a new deplibs_check_method called match_pattern and use it.
The use of file(1) was always disliked and it proved to cause problems
on some platforms.

Fixes pkg/12516 from Dam McMahill <mcmahill@mtl.mit.edu>
2001-04-03 17:06:16 +00:00
skrll
eab52d3728 Bump the buffer size even more for KDE2. As Hubert points out libtool
really shouldn't be creating a dependency_libs line quite as long as
it does...
2001-03-26 07:35:50 +00:00
skrll
3b77ca1864 Change the workaround for old compiler versions so that it actually works.
Actually simply the workaround in the process.

Fixes problems noted by SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp> on
tech-pkg and David W. Talmage <talmage@ricochet.net> in private email.

Tested by SUNAGAWA Keiki.
2001-03-18 17:10:27 +00:00
skrll
a8d1e7fa28 Re-enable the -release option of libtool. ELF is fully supported with a.out
support to follow. Note this in documentation.

Bump revision of libtool to nb3 and update dependencies.

Update (sort) known affected PLISTs.

Fixes pkg/12368 by Kimmo Suominen <kim@tac.nyc.ny.us>
Fixes problems with cross/* noted on tech-pkg and packages by
	Chuck Cranor <chuck@research.att.com>, and
	Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
2001-03-12 11:23:01 +00:00
skrll
54ba5eaa02 Restore old numbering scheme for libraries on Solaris as discussed on
tech-pkg.
2001-02-28 21:20:30 +00:00
skrll
1649d7d5e2 Revert previous change it didn't work. Instead force the inclusion of a
CC tag configuration so that --tag=CC works.
2001-02-28 18:18:22 +00:00
skrll
184da7784d Fall back to the default configuration when unable to infer a tag.
This helps with c compilers that libtool doesn't recognise.

Bump the revision.
2001-02-28 10:16:57 +00:00
skrll
ba7d9319bd Update libtool to be based on a CVS snapshot of the multi-language branch 2001-02-27 08:20:23 +00:00
skrll
d18265003e Add a missing colon 2001-02-11 10:12:04 +00:00
hubertf
3885198f90 Split into libtool-base and libtool-info, for easier system bootstrap.
This meta-package pulls in the other two parts.

XXX any modifications should be made to this pkg's Makefile.common, patches,
XXX files dir etc. *only* !
2001-02-03 05:34:57 +00:00
tsutsui
91b95f4cc1 Use $CC_FOR_BUILD on checking system types in config.guess. 2001-01-26 17:33:26 +00:00
skrll
3e9ab94d03 Improve argument checking for -version-info. Bump to nb11. 2001-01-26 16:42:44 +00:00
tsutsui
d3a77be809 Use "uname -p" or "sysctl -n hw.machine_arch" to check system types
in config.guess. (From gnusrc/gnu/dist/toolchain/config.guess 1.3)
2001-01-24 12:55:34 +00:00
jlam
ea6b629982 Move check for C++ contructors/destructors to occur earlier to prevent
passing $whole_archive_flag_spec to nm.
2001-01-15 15:18:23 +00:00
scw
0835444e26 Fix config.guess to recognise mvme68k. 2001-01-14 21:43:12 +00:00
bad
1a86a78db2 On a.out systems link shared libraries against c++rt0.o only if there
actually are CTORS/DTORS in the objects that go into the library.

This makes pkgsrc under 1.3.x not blow up on C libraries that were built
with libtool.  E.g. everything that linked against -lintl would dump core.
2001-01-09 18:37:46 +00:00
wiz
b22425b97c Update to 1.3.5nb10:
wllinklibs have to be before deplibs to take effect (else they won't get
added to the RPATH, at least not on i386/current).
2000-12-28 17:55:37 +00:00
mycroft
754ef257be Set need_lib_prefix=no for all NetBSD platforms. gnumeric import modules and
gnome-python modules don't work without this.
2000-11-26 21:00:10 +00:00
mycroft
c0f325e33c *SIGH*
The previous patch could cause problems in a couple of oddball cases.
So, set need_version=yes for a.out, and hack avoid-version so it works on
a.out platforms.
2000-11-26 11:22:40 +00:00
mycroft
0619a2f2cd need_version is mostly bullshit. It only succeeds in breaking everything that
loads shlib components at run-time on a.out systems (such as imlib, gtk themes,
gdk-pixbuf, and gnumeric).  So, disable it for all NetBSD platforms.
(Note: This requires updating some PLISTs.)
2000-11-26 11:03:42 +00:00
mycroft
69fa62655d Make libtool actually use library dependencies for a.out, since we do in fact
support them.  This fixes a whole pile of lossage in GNOME-land.
2000-11-17 05:24:00 +00:00
skrll
54367d8e8a Make sure that -Wl does the right thing on a.out.
Make sure that an -fPIC c++rt0 is pulled in for sparc<1.4.3

Fixes: pkg/11166, pkg/10190, pkg/11189, and port-sparc/10846
2000-10-12 19:07:06 +00:00
skrll
ab3ca03431 Depreciate use of cc -shared as test and cc as linker in a.out case.
Bump to nb5.

This fixes PR/10908.
2000-09-14 10:20:46 +00:00
veego
c175eb34f1 Also use the solaris library naming on Solaris and not the linux one. 2000-08-26 07:35:18 +00:00
jun
bd82b2d027 add
configration for mipsel(arc/cobalt/hpcmips/pmax).
2000-08-01 19:13:07 +00:00
skrll
938f1507f4 Update to support C++ in a different way to pkglibtool. There is no
--cplusplus option is should just work. Thanks to Todd Verling for
help with this.

I've been sitting on this update while I played with
deplibs_check_method for a.out. There seems to be a problem related
to dlopen stuff if file_magic is used. Still investigating.

Version bumped to nb4.
2000-06-29 08:06:05 +00:00