Remove massive overheads from loading programs that use many

libtool-generated shared libraries by forcing libtool into understanding
that FreeBSD can correctly handle shared library dependencies.

This code already exists in the libtool CVS repository but without knowing
the release schedule (if any) for a new libtool 1.5.x series, and the
exceptional performance gains (gnucash for example uses 122 shared libraries
and with things rebuilt now starts up in ~10 seconds as opposed to 15
*minutes*).  Further, a number of people have assisted in extensive testing
of this code in a series of different environments, so I am therefore
adding this patch to the tree.

PR:		94826
Submitted by:	Peter Jeremy <peterjeremy@optushome.com.au>
Tested by:	too many to list - thank you all
This commit is contained in:
Ade Lovett 2007-01-31 01:45:16 +00:00
parent 04e0801127
commit 722bf380a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=183751
4 changed files with 18 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= libltdl
PORTREVISION= 0
PORTREVISION= 1
MASTERDIR= ${.CURDIR}/../../devel/libtool15
COMMENT= System independent dlopen wrapper

View File

@ -7,7 +7,7 @@
PORTNAME?= libtool
PORTVERSION= 1.5.22
PORTREVISION?= 2
PORTREVISION?= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= libtool

View File

@ -0,0 +1,8 @@
--- libltdl/acinclude.m4.orig Sun Dec 18 14:13:49 2005
+++ libltdl/acinclude.m4 Tue Jan 30 17:30:22 2007
@@ -6526,2 +6526,5 @@
;;
+ freebsd*)
+ libltdl_cv_sys_dlopen_deplibs=yes
+ ;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)

View File

@ -0,0 +1,8 @@
--- ltdl.m4.orig Sun Dec 18 13:53:17 2005
+++ ltdl.m4 Tue Jan 30 17:32:06 2007
@@ -129,2 +129,5 @@
;;
+ freebsd*)
+ libltdl_cv_sys_dlopen_deplibs=yes
+ ;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)