diff options
author | skrll <skrll> | 2001-02-27 08:20:23 +0000 |
---|---|---|
committer | skrll <skrll> | 2001-02-27 08:20:23 +0000 |
commit | 9698f6055b3a851f397a4642a14b27b5b9b3d3f1 (patch) | |
tree | 31876350654b4ad2b95104766e43093187eddbb4 /Packages.txt | |
parent | 3ad95f8365551365c1eddc5192b3788b8c7ddb18 (diff) | |
download | pkgsrc-9698f6055b3a851f397a4642a14b27b5b9b3d3f1.tar.gz |
Update libtool to be based on a CVS snapshot of the multi-language branch
Diffstat (limited to 'Packages.txt')
-rw-r--r-- | Packages.txt | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/Packages.txt b/Packages.txt index b4032147a02..d6e85ddae8c 100644 --- a/Packages.txt +++ b/Packages.txt @@ -1,4 +1,4 @@ -# $NetBSD: Packages.txt,v 1.141 2001/02/17 15:09:51 skrll Exp $ +# $NetBSD: Packages.txt,v 1.142 2001/02/27 08:20:23 skrll Exp $ ########################################################################### ========================== @@ -874,11 +874,15 @@ Here's how to use libtool in a pkg in seven simple steps: objects are changed to have a .lo extension. Change OBJS as necessary. This automatically creates all of the .a, .so.major.minor, and ELF symlinks (if necessary) in the build directory. Be sure to include - the -version-info esp. when major and minor are zero, as libtool will - strip off the shared library version else. Also, any "-release" should - be removed, as it removes the version info as well. + the -version-info especially when major and minor are zero, as libtool + will otherwise strip off the shared library version. - PLIST gets all of the .a, .la and so, .so.major and .so.major.minor + The "-release" option has been disabled in the pkgsrc version of libtool + as it creates unnecessary differences between ELF and a.out platforms. + + The -rpath argument is the install directory of the library being built. + + PLIST should include all of the .a, .la and so, .so.major and .so.major.minor entries. 4. When linking shared object (.so) files, i.e. files that are loaded via @@ -929,6 +933,24 @@ The pkg's own libtool is made by ltconfig script at do-configure target. If USE_LIBTOOL and LTCONFIG_OVERRIDE are defined, the specified ltconfig is overridden, using the devel/libtool instead of the pkg's own libtool. +If your package makes use of the platform independant method of loading +dynamic shared objects libltdl then you should add USE_LTDL= yes to the +Makefile. + +Some packages use libtool incorrectly so that the package may work or build +on NetBSD. Some common errors are + + * The inclusion of a shared object (-module) as a dependent library in an + executable or library. This in itself isn't a problem if one of two things + has been done. + + 1. The shared object is named correctly, i.e. libfoo.la and not foo.la + + 2. The -dlopen option is used when linking an executable. + + * The use of libltdl without the correct calls to initialisation routines. + The function lt_dlinit() should be called and the macro + LTDL_SET_PRELOADED_SYMBOLS included in executables. 6.4 Gotchas of FreeBSD ports ============================ |