Update libtool section of Porting Guide:
- suggest USE_LIBTOOL_VER=13 instead of USE_LIBTOOL=yes - suggest using lthack instead of patch-configure - update example Makefile too
This commit is contained in:
parent
cb0045c941
commit
d9b27f2521
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=20974
2 changed files with 9 additions and 16 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
|
||||
<!ENTITY base CDATA "../..">
|
||||
<!ENTITY date "$FreeBSD: www/en/gnome/docs/example-Makefile.sgml,v 1.2 2003/12/28 04:35:43 adamw Exp $">
|
||||
<!ENTITY date "$FreeBSD: www/en/gnome/docs/example-Makefile.sgml,v 1.3 2003/12/28 05:18:45 adamw Exp $">
|
||||
<!ENTITY title "FreeBSD GNOME Project: Example GNOME Makefile">
|
||||
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
|
||||
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
# Date created: 27 December 2003
|
||||
# Whom: Some GNOME User <&email;@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD: www/en/gnome/docs/example-Makefile.sgml,v 1.2 2003/12/28 04:35:43 adamw Exp $
|
||||
# $FreeBSD: www/en/gnome/docs/example-Makefile.sgml,v 1.3 2003/12/28 05:18:45 adamw Exp $
|
||||
#
|
||||
|
||||
# For this example, assume there was already a gnomeapp in the tree, and that this
|
||||
|
|
@ -33,7 +33,7 @@ COMMENT= A GNOME app that does some stuff
|
|||
|
||||
USE_BZIP2= yes
|
||||
USE_X_PREFIX= yes
|
||||
USE_LIBTOOL= yes # many GNOME apps need libtool, and most need GNU configure
|
||||
USE_LIBTOOL_VER= 13 # many GNOME apps need libtool, and most need GNU configure
|
||||
USE_GMAKE= yes # same with GNU make
|
||||
# This is for i18n:
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
|
||||
<!ENTITY base CDATA "../..">
|
||||
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.37 2004/01/24 07:58:44 marcus Exp $">
|
||||
<!ENTITY date "$FreeBSD: www/en/gnome/docs/porting.sgml,v 1.38 2004/04/04 21:49:39 phantom Exp $">
|
||||
<!ENTITY title "FreeBSD GNOME Project: How To Make a Port">
|
||||
<!ENTITY % gnomeincludes SYSTEM "../includes.sgml"> %gnomeincludes;
|
||||
<!ENTITY % includes SYSTEM "../../includes.sgml"> %includes;
|
||||
|
|
@ -247,21 +247,14 @@ WANT_GNOME= yes
|
|||
|
||||
<p>Most, if not all, GNOME applications depend on GNU's libtool.
|
||||
They also use the GNU configure system. If your port installs
|
||||
shared libraries, you should add <tt>USE_LIBTOOL= yes</tt> to
|
||||
shared libraries, you should add <tt>USE_LIBTOOL_VER= 13</tt> to
|
||||
your port's Makefile. This takes care of most of the libtool
|
||||
requirements, but will not prevent things such as .la files
|
||||
from being installed. To ensure a proper shared library
|
||||
installation, also consider adding the following line to your
|
||||
port's <tt>configure</tt> script directly below the line
|
||||
<tt>LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"</tt>:</p>
|
||||
|
||||
<pre>
|
||||
$ac_aux_dir/ltconfig $LIBTOOL_DEPS
|
||||
</pre>
|
||||
|
||||
<p>This prevents the installation of .la files and
|
||||
ensures that <tt>${PTHREAD_LIBS}</tt> will be passed to the
|
||||
linker.</p>
|
||||
installation, also consider adding <tt>lthack</tt> to
|
||||
<b>USE_GNOME</b> line in port Makefile. This prevents the
|
||||
installation of .la files and ensures that
|
||||
<tt>${PTHREAD_LIBS}</tt> will be passed to the linker.</p>
|
||||
<!-- End GNOME libtool -->
|
||||
|
||||
<!-- Begin GNOME distfiles -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue