View | Details | Raw Unified | Return to bug 44151
Collapse All | Expand All

(-)Makefile (-6 / +1 lines)
Lines 6-22 Link Here
6
#
6
#
7
7
8
PORTNAME=	libtool
8
PORTNAME=	libtool
9
PORTVERSION=	1.3.4
9
PORTVERSION=	1.4.2
10
PORTREVISION=	4
11
CATEGORIES=	devel
10
CATEGORIES=	devel
12
MASTER_SITES=	${MASTER_SITE_GNU}
11
MASTER_SITES=	${MASTER_SITE_GNU}
13
MASTER_SITE_SUBDIR=	libtool
12
MASTER_SITE_SUBDIR=	libtool
14
13
15
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
16
17
# This port has not been upgraded to 1.4 because it is used by about 30% of
18
# the ports collection, and more testing is needed.  If someone can supply a
19
# working patch then it will be upgraded.
20
15
21
INSTALLS_SHLIB=	yes
16
INSTALLS_SHLIB=	yes
22
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
(-)distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (libtool-1.3.4.tar.gz) = 0c3844fedd382e5796865ca58842713e
1
MD5 (libtool-1.4.2.tar.gz) = 95dd3de3b249fe1199ed60ed8e46f60c
(-)pkg-plist (-4 / +9 lines)
Lines 4-29 Link Here
4
@unexec install-info --delete %D/info/libtool.info %D/info/dir
4
@unexec install-info --delete %D/info/libtool.info %D/info/dir
5
info/libtool.info
5
info/libtool.info
6
@exec install-info %D/info/libtool.info %D/info/dir
6
@exec install-info %D/info/libtool.info %D/info/dir
7
info/libtool.info-1
8
info/libtool.info-2
9
info/libtool.info-3
10
info/libtool.info-4
11
info/libtool.info-5
7
lib/libltdl.a
12
lib/libltdl.a
13
lib/libltdl.la
8
lib/libltdl.so
14
lib/libltdl.so
9
lib/libltdl.so.1
15
lib/libltdl.so.4
10
share/aclocal/libtool.m4
16
share/aclocal/libtool.m4
17
share/aclocal/ltdl.m4
11
share/libtool/config.guess
18
share/libtool/config.guess
12
share/libtool/config.sub
19
share/libtool/config.sub
13
share/libtool/libltdl/COPYING.LIB
20
share/libtool/libltdl/COPYING.LIB
14
share/libtool/libltdl/Makefile.am
21
share/libtool/libltdl/Makefile.am
15
share/libtool/libltdl/Makefile.in
22
share/libtool/libltdl/Makefile.in
16
share/libtool/libltdl/README
23
share/libtool/libltdl/README
17
share/libtool/libltdl/acconfig.h
18
share/libtool/libltdl/acinclude.m4
24
share/libtool/libltdl/acinclude.m4
19
share/libtool/libltdl/aclocal.m4
25
share/libtool/libltdl/aclocal.m4
20
share/libtool/libltdl/config.h.in
26
share/libtool/libltdl/config-h.in
21
share/libtool/libltdl/configure
27
share/libtool/libltdl/configure
22
share/libtool/libltdl/configure.in
28
share/libtool/libltdl/configure.in
23
share/libtool/libltdl/ltdl.c
29
share/libtool/libltdl/ltdl.c
24
share/libtool/libltdl/ltdl.h
30
share/libtool/libltdl/ltdl.h
25
share/libtool/libltdl/stamp-h.in
31
share/libtool/libltdl/stamp-h.in
26
share/libtool/ltconfig
27
share/libtool/ltmain.sh
32
share/libtool/ltmain.sh
28
@dirrm share/libtool/libltdl
33
@dirrm share/libtool/libltdl
29
@dirrm share/libtool
34
@dirrm share/libtool
(-)files/patch-ab (-5 / +5 lines)
Lines 1-11 Link Here
1
--- doc/Makefile.in.orig	Fri Jul  2 09:24:54 1999
1
--- Makefile.in.orig	Wed Oct 16 17:35:37 2002
2
+++ doc/Makefile.in	Tue Aug 31 23:41:57 1999
2
+++ Makefile.in	Wed Oct 16 17:36:00 2002
3
@@ -70,7 +70,7 @@
3
@@ -74,7 +74,7 @@
4
 LD = @LD@
4
 LIBTOOL = @LIBTOOL@
5
 LIBTOOL = @LIBTOOL@
5
 LIBTOOL_FLAGS = @LIBTOOL_FLAGS@
6
 LN_S = @LN_S@
6
 LN_S = @LN_S@
7
-MAKEINFO = @MAKEINFO@
7
-MAKEINFO = @MAKEINFO@
8
+MAKEINFO = @MAKEINFO@ --no-split
8
+MAKEINFO = @MAKEINFO@ --no-split
9
 NM = @NM@
9
 NM = @NM@
10
 OBJDUMP = @OBJDUMP@
10
 OBJDUMP = @OBJDUMP@
11
 PACKAGE = @PACKAGE@
11
 OBJEXT = @OBJEXT@
(-)files/patch-ad (-246 / +70 lines)
Lines 1-247 Link Here
1
1
--- acinclude.m4.orig	Wed Oct 16 18:04:22 2002
2
$FreeBSD: ports/devel/libtool/files/patch-ad,v 1.8 2002/05/02 07:49:56 sobomax Exp $
2
+++ acinclude.m4	Wed Oct 16 18:14:48 2002
3
3
@@ -756,7 +756,7 @@
4
--- ltmain.sh.orig	Tue Dec  7 23:50:49 1999
4
 test -z "$CC" && CC=cc
5
+++ ltmain.sh	Thu May  2 10:24:05 2002
5
 test -z "$DLLTOOL" && DLLTOOL=dlltool
6
@@ -23,6 +23,9 @@
6
 test -z "$LD" && LD=ld
7
 # configuration script generated by Autoconf, you may include it under
7
-test -z "$LN_S" && LN_S="ln -s"
8
 # the same distribution terms that you use for the rest of that program.
8
+test -z "$LN_S" && LN_S="ln -sf"
9
 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10
 test -z "$NM" && NM=nm
11
 test -z "$OBJDUMP" && OBJDUMP=objdump
12
@@ -1933,7 +1933,7 @@
13
 version_type=none
14
 dynamic_linker="$host_os ld.so"
15
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17
+sys_lib_search_path_spec="/lib /usr/lib"
18
 
19
 case $host_os in
20
 aix3*)
21
--- aclocal.m4.orig	Wed Oct 16 18:04:27 2002
22
+++ aclocal.m4	Wed Oct 16 18:15:30 2002
23
@@ -746,7 +746,7 @@
24
 test -z "$CC" && CC=cc
25
 test -z "$DLLTOOL" && DLLTOOL=dlltool
26
 test -z "$LD" && LD=ld
27
-test -z "$LN_S" && LN_S="ln -s"
28
+test -z "$LN_S" && LN_S="ln -sf"
29
 test -z "$MAGIC_CMD" && MAGIC_CMD=file
30
 test -z "$NM" && NM=nm
31
 test -z "$OBJDUMP" && OBJDUMP=objdump
32
@@ -1885,7 +1885,7 @@
33
 version_type=none
34
 dynamic_linker="$host_os ld.so"
35
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
36
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
37
+sys_lib_search_path_spec="/lib /usr/lib"
38
 
39
 case $host_os in
40
 aix3*)
41
--- libtool.m4.orig	Wed Oct 16 18:04:41 2002
42
+++ libtool.m4	Wed Oct 16 18:14:48 2002
43
@@ -756,7 +756,7 @@
44
 test -z "$CC" && CC=cc
45
 test -z "$DLLTOOL" && DLLTOOL=dlltool
46
 test -z "$LD" && LD=ld
47
-test -z "$LN_S" && LN_S="ln -s"
48
+test -z "$LN_S" && LN_S="ln -sf"
49
 test -z "$MAGIC_CMD" && MAGIC_CMD=file
50
 test -z "$NM" && NM=nm
51
 test -z "$OBJDUMP" && OBJDUMP=objdump
52
@@ -1933,7 +1933,7 @@
53
 version_type=none
54
 dynamic_linker="$host_os ld.so"
55
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
56
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
57
+sys_lib_search_path_spec="/lib /usr/lib"
58
 
59
 case $host_os in
60
 aix3*)
61
--- libtoolize.in.orig	Wed Oct 16 18:16:16 2002
62
+++ libtoolize.in	Wed Oct 16 18:16:35 2002
63
@@ -43,7 +43,7 @@
64
 dry_run=no
65
 help="Try \`$progname --help' for more information."
66
 rm="rm -f"
67
-ln_s="ln -s"
68
+ln_s="ln -sf"
69
 cp="cp -f"
70
 mkdir="mkdir"
9
 
71
 
10
+EXPR_COMPAT=1
11
+export EXPR_COMPAT
12
+
13
 # Check that we have a working $echo.
14
 if test "X$1" = X--no-reexec; then
15
   # Discard the --no-reexec flag, and continue.
16
@@ -54,7 +57,7 @@
17
 # Constants.
18
 PROGRAM=ltmain.sh
19
 PACKAGE=libtool
20
-VERSION=1.3.4
21
+VERSION=1.3.4-freebsd-ports
22
 TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
23
 
24
 default_mode=
25
@@ -952,7 +955,11 @@
26
 	  continue
27
 	  ;;
28
 	release)
29
-	  release="-$arg"
30
+	  if test "$release_suffix" = all; then
31
+	    release="$arg"
32
+	  elif test "$release_suffix" = yes; then
33
+	    release="-$arg"
34
+	  fi
35
 	  prev=
36
 	  continue
37
 	  ;;
38
@@ -1005,6 +1012,7 @@
39
 	;;
40
 
41
       -avoid-version)
42
+	build_old_libs=no
43
 	avoid_version=yes
44
 	continue
45
 	;;
46
@@ -1091,6 +1099,10 @@
47
 	deplibs="$deplibs $arg"
48
 	;;
49
 
50
+      -?thread)
51
+	deplibs="$deplibs $arg"
52
+	;;
53
+
54
       -module)
55
 	module=yes
56
 	continue
57
@@ -1168,7 +1180,7 @@
58
 
59
       *.o | *.obj | *.a | *.lib)
60
 	# A standard object.
61
-	objs="$objs $arg"
62
+	libobjs="$libobjs $arg"
63
 	;;
64
 
65
       *.lo)
66
@@ -1603,12 +1615,6 @@
67
 	exit 1
68
       fi
69
 
70
-      # How the heck are we supposed to write a wrapper for a shared library?
71
-      if test -n "$link_against_libtool_libs"; then
72
-	 $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
73
-	 exit 1
74
-      fi
75
-
76
       if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
77
 	$echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
78
       fi
79
@@ -1795,6 +1801,9 @@
80
 	*-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
81
 	  # these systems don't actually have a c library (as such)!
82
 	  ;;
83
+	*-*-freebsd*)
84
+	  # FreeBSD doesn't need this...
85
+	  ;;
86
 	*)
87
 	  # Add libc to deplibs on all other systems.
88
 	  deplibs="$deplibs -lc"
89
@@ -1802,6 +1811,94 @@
90
 	esac
91
       fi
92
 
93
+      if test -n "$rpath$xrpath"; then
94
+	# If the user specified any rpath flags, then add them.
95
+	for libdir in $rpath $xrpath; do
96
+	  # This is the magic to use -rpath.
97
+	  case "$compile_rpath " in
98
+	  *" $libdir "*) ;;
99
+	  *) compile_rpath="$compile_rpath $libdir" ;;
100
+	  esac
101
+	  case "$finalize_rpath " in
102
+	  *" $libdir "*) ;;
103
+	  *) finalize_rpath="$finalize_rpath $libdir" ;;
104
+	  esac
105
+	done
106
+      fi
107
+
108
+      # Now hardcode the library paths
109
+      rpath=
110
+      hardcode_libdirs=
111
+      for libdir in $compile_rpath; do
112
+	if test -n "$hardcode_libdir_flag_spec"; then
113
+	  if test -n "$hardcode_libdir_separator"; then
114
+	    if test -z "$hardcode_libdirs"; then
115
+	      hardcode_libdirs="$libdir"
116
+	    else
117
+	      # Just accumulate the unique libdirs.
118
+	      case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
119
+	      *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
120
+		;;
121
+	      *)
122
+		hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
123
+		;;
124
+	      esac
125
+	    fi
126
+	  else
127
+	    eval flag=\"$hardcode_libdir_flag_spec\"
128
+	    rpath="$rpath $flag"
129
+	  fi
130
+	elif test -n "$runpath_var"; then
131
+	  case "$perm_rpath " in
132
+	  *" $libdir "*) ;;
133
+	  *) perm_rpath="$perm_rpath $libdir" ;;
134
+	  esac
135
+	fi
136
+      done
137
+      # Substitute the hardcoded libdirs into the rpath.
138
+      if test -n "$hardcode_libdir_separator" &&
139
+	 test -n "$hardcode_libdirs"; then
140
+	libdir="$hardcode_libdirs"
141
+	eval rpath=\" $hardcode_libdir_flag_spec\"
142
+      fi
143
+      compile_rpath="$rpath"
144
+
145
+      rpath=
146
+      hardcode_libdirs=
147
+      for libdir in $finalize_rpath; do
148
+	if test -n "$hardcode_libdir_flag_spec"; then
149
+	  if test -n "$hardcode_libdir_separator"; then
150
+	    if test -z "$hardcode_libdirs"; then
151
+	      hardcode_libdirs="$libdir"
152
+	    else
153
+	      # Just accumulate the unique libdirs.
154
+	      case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
155
+	      *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
156
+		;;
157
+	      *)
158
+		hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
159
+		;;
160
+	      esac
161
+	    fi
162
+	  else
163
+	    eval flag=\"$hardcode_libdir_flag_spec\"
164
+	    rpath="$rpath $flag"
165
+	  fi
166
+	elif test -n "$runpath_var"; then
167
+	  case "$finalize_perm_rpath " in
168
+	  *" $libdir "*) ;;
169
+	  *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
170
+	  esac
171
+	fi
172
+      done
173
+      # Substitute the hardcoded libdirs into the rpath.
174
+      if test -n "$hardcode_libdir_separator" &&
175
+	 test -n "$hardcode_libdirs"; then
176
+	libdir="$hardcode_libdirs"
177
+	eval rpath=\" $hardcode_libdir_flag_spec\"
178
+      fi
179
+      finalize_rpath="$rpath"
180
+
181
       # Create the output directory, or remove our outputs if we need to.
182
       if test -d $output_objdir; then
183
 	$show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
184
@@ -1817,7 +1914,11 @@
185
 
186
       # Now set the variables for building old libraries.
187
       if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
188
-	oldlibs="$oldlibs $output_objdir/$libname.$libext"
189
+	if test "$release_suffix" = all; then
190
+	 oldlibs="$oldlibs $output_objdir/$libname$release.$libext"
191
+	else
192
+	 oldlibs="$oldlibs $output_objdir/$libname.$libext"
193
+	fi
194
 
195
 	# Transform .lo files to .o files.
196
 	oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
197
@@ -2011,7 +2112,11 @@
198
 	      echo "*** \`nm' from GNU binutils and a full rebuild may help."
199
 	    fi
200
 	    if test "$build_old_libs" = no; then
201
-	      oldlibs="$output_objdir/$libname.$libext"
202
+	      if test "$release_suffix" = all; then
203
+	        oldlibs="$output_objdir/$libname$release.$libext"
204
+	      else
205
+	        oldlibs="$output_objdir/$libname.$libext"
206
+	      fi
207
 	      build_libtool_libs=module
208
 	      build_old_libs=yes
209
 	    else
210
@@ -3059,7 +3164,11 @@
211
     case "$output" in
212
     *.la)
213
       old_library=
214
-      test "$build_old_libs" = yes && old_library="$libname.$libext"
215
+      if test "$release_suffix" = all; then
216
+        test "$build_old_libs" = yes && old_library="$libname$release.$libext"
217
+      else
218
+        test "$build_old_libs" = yes && old_library="$libname.$libext"
219
+      fi
220
       $show "creating $output"
221
 
222
       if test -n "$xrpath"; then
223
@@ -3348,10 +3457,12 @@
224
 	fi
225
 
226
 	# Install the pseudo-library for information purposes.
227
-	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
228
-	instname="$dir/$name"i
229
-	$show "$install_prog $instname $destdir/$name"
230
-	$run eval "$install_prog $instname $destdir/$name" || exit $?
231
+	if test "$install_ltlibs" = yes; then
232
+	  name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
233
+	  instname="$dir/$name"i
234
+	  $show "$install_prog $instname $destdir/$name"
235
+	  $run eval "$install_prog $instname $destdir/$name" || exit $?
236
+	fi
237
 
238
 	# Maybe install the static library, too.
239
 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
240
@@ -3440,7 +3551,6 @@
241
 	    fi
242
 	    libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
243
 	    if test -n "$libdir" && test ! -f "$libfile"; then
244
-	      $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
245
 	      finalize=no
246
 	    fi
247
 	  done
(-)files/patch-ae (-3 / +49 lines)
Lines 1-6 Link Here
1
--- configure.orig	Fri Jul  2 09:01:56 1999
1
--- configure.orig	Tue Sep 11 05:33:00 2001
2
+++ configure	Tue Aug 31 23:45:29 1999
2
+++ configure	Wed Oct 16 18:49:59 2002
3
@@ -1853,10 +1853,6 @@
3
@@ -1561,13 +1561,13 @@
4
 if ln -s X conftestdata 2>/dev/null
5
 then
6
   rm -f conftestdata
7
-  ac_cv_prog_LN_S="ln -s"
8
+  ac_cv_prog_LN_S="ln -sf"
9
 else
10
   ac_cv_prog_LN_S=ln
11
 fi
12
 fi
13
 LN_S="$ac_cv_prog_LN_S"
14
-if test "$ac_cv_prog_LN_S" = "ln -s"; then
15
+if test "$ac_cv_prog_LN_S" = "ln -sf"; then
16
   echo "$ac_t""yes" 1>&6
17
 else
18
   echo "$ac_t""no" 1>&6
19
@@ -2942,7 +2942,7 @@
20
 test -z "$CC" && CC=cc
21
 test -z "$DLLTOOL" && DLLTOOL=dlltool
22
 test -z "$LD" && LD=ld
23
-test -z "$LN_S" && LN_S="ln -s"
24
+test -z "$LN_S" && LN_S="ln -sf"
25
 test -z "$MAGIC_CMD" && MAGIC_CMD=file
26
 test -z "$NM" && NM=nm
27
 test -z "$OBJDUMP" && OBJDUMP=objdump
28
@@ -4178,7 +4178,7 @@
29
 version_type=none
30
 dynamic_linker="$host_os ld.so"
31
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
32
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
33
+sys_lib_search_path_spec="/lib /usr/lib"
34
 
35
 case $host_os in
36
 aix3*)
37
@@ -6028,11 +6028,6 @@
38
     top_srcdir="$ac_dots$ac_given_srcdir" ;;
39
   esac
40
 
41
-  case "$ac_given_INSTALL" in
42
-  [/$]*) INSTALL="$ac_given_INSTALL" ;;
43
-  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
44
-  esac
45
-
46
   echo creating "$ac_file"
47
   rm -f "$ac_file"
48
   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
49
@@ -6184,10 +6179,6 @@
4
       *) # Relative path.
50
       *) # Relative path.
5
         ac_sub_cache_file="$ac_dots$cache_file" ;;
51
         ac_sub_cache_file="$ac_dots$cache_file" ;;
6
       esac
52
       esac
(-)files/patch-af (-3 / +3 lines)
Lines 1-6 Link Here
1
--- libltdl/Makefile.in.orig	Tue Dec  7 13:03:38 1999
1
--- libltdl/Makefile.in.orig	Wed Oct 16 18:11:03 2002
2
+++ libltdl/Makefile.in	Mon Jan 17 16:35:34 2000
2
+++ libltdl/Makefile.in	Wed Oct 16 18:12:00 2002
3
@@ -326,17 +326,16 @@
3
@@ -345,17 +345,16 @@
4
 distdir: $(DISTFILES)
4
 distdir: $(DISTFILES)
5
 	-rm -rf $(distdir)
5
 	-rm -rf $(distdir)
6
 	mkdir $(distdir)
6
 	mkdir $(distdir)
(-)files/patch-ac.orig (-157 lines)
Removed Link Here
1
2
$FreeBSD: ports/devel/libtool/files/patch-ac,v 1.11 2002/06/08 08:57:34 sobomax Exp $
3
4
--- ltconfig.orig	Tue Dec  7 23:50:48 1999
5
+++ ltconfig	Sat Jun  8 11:48:12 2002
6
@@ -169,7 +169,7 @@
7
 # Constants:
8
 PROGRAM=ltconfig
9
 PACKAGE=libtool
10
-VERSION=1.3.4
11
+VERSION=1.3.4-freebsd-ports
12
 TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
13
 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14
 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15
@@ -185,6 +185,8 @@
16
 # which needs '.lib').
17
 enable_static=yes
18
 enable_fast_install=yes
19
+install_ltlibs=yes
20
+release_suffix=yes
21
 enable_dlopen=unknown
22
 enable_win32_dll=no
23
 ltmain=
24
@@ -242,10 +244,14 @@
25
 
26
 Generate a system-specific libtool script.
27
 
28
+    --build                no-op to keep compatability with configure scripts generated for 1.4
29
     --debug                enable verbose shell tracing
30
     --disable-shared       do not build shared libraries
31
     --disable-static       do not build static libraries
32
     --disable-fast-install do not optimize for fast installation
33
+    --disable-ltlibs       don't install the .la archives
34
+    --release-ignore       don't use -release specification
35
+    --release-suffix       use -release suffix for all files
36
     --enable-dlopen        enable dlopen support
37
     --enable-win32-dll     enable building dlls on win32 hosts
38
     --help                 display this help and exit
39
@@ -268,6 +274,8 @@
40
   exit 0
41
   ;;
42
 
43
+  --build=*) ;;
44
+
45
   --debug)
46
     echo "$progname: enabling shell trace mode"
47
     set -x
48
@@ -279,6 +287,12 @@
49
 
50
   --disable-fast-install) enable_fast_install=no ;;
51
 
52
+  --disable-ltlibs) install_ltlibs=no ;;
53
+
54
+  --release-ignore) release_suffix=no ;;
55
+
56
+  --release-suffix) release_suffix=all ;;
57
+
58
   --enable-dlopen) enable_dlopen=yes ;;
59
 
60
   --enable-win32-dll) enable_win32_dll=yes ;;
61
@@ -971,11 +985,11 @@
62
   $rm conftest.dat
63
   if ln -s X conftest.dat 2>/dev/null; then
64
     $rm conftest.dat
65
-    LN_S="ln -s"
66
+    LN_S="ln -sf"
67
   else
68
     LN_S=ln
69
   fi
70
-  if test "$LN_S" = "ln -s"; then
71
+  if test "$LN_S" = "ln -sf"; then
72
     echo "$ac_t"yes 1>&6
73
   else
74
     echo "$ac_t"no 1>&6
75
@@ -1226,8 +1240,8 @@
76
 
77
   *)
78
     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
79
-      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
80
-      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
81
+      archive_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
82
+      archive_expsym_cmds='$CC -shared $compile_rpath $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
83
     else
84
       ld_shlibs=no
85
     fi
86
@@ -1353,14 +1367,6 @@
87
     hardcode_shlibpath_var=no
88
     ;;
89
 
90
-  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
91
-  freebsd*)
92
-    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
93
-    hardcode_libdir_flag_spec='-R$libdir'
94
-    hardcode_direct=yes
95
-    hardcode_shlibpath_var=no
96
-    ;;
97
-
98
   hpux9* | hpux10* | hpux11*)
99
     case "$host_os" in
100
     hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
101
@@ -1775,7 +1781,7 @@
102
 version_type=none
103
 dynamic_linker="$host_os ld.so"
104
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
105
-sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
106
+sys_lib_search_path_spec="/lib /usr/lib"
107
 file_magic_cmd=
108
 file_magic_test_file=
109
 deplibs_check_method='unknown'
110
@@ -1873,19 +1879,22 @@
111
   version_type=freebsd-$objformat
112
   case "$version_type" in
113
     freebsd-elf*)
114
-      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
115
-      file_magic_cmd=/usr/bin/file
116
-      file_magic_test_file=`echo /usr/lib/libc.so*`
117
-      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
118
-      need_version=no
119
-      need_lib_prefix=no
120
+      deplibs_check_method='file_magic (ELF [0-9][0-9]*-bit [LM]SB shared object|current ar archive)'
121
       ;;
122
     freebsd-*)
123
-      deplibs_check_method=unknown
124
-      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
125
-      need_version=yes
126
+      deplibs_check_method='file_magic FreeBSD.* shared library'
127
       ;;
128
   esac
129
+  file_magic_cmd=/usr/bin/file
130
+  file_magic_test_file=`echo /usr/lib/libc.so.*`
131
+  if test "$release_suffix" = all; then
132
+    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so'
133
+  else
134
+    library_names_spec='${libname}${release}.so$versuffix ${libname}.so'
135
+  fi 
136
+  need_version=no
137
+  need_lib_prefix=no
138
+  finish_cmds='/usr/bin/env OBJFORMAT="'"$objformat"'" /sbin/ldconfig -m $libdir'
139
   shlibpath_var=LD_LIBRARY_PATH
140
   case "$host_os" in
141
   freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
142
@@ -2776,6 +2785,15 @@
143
 
144
 # Shell to use when invoking shell scripts.
145
 SHELL=$LTSHELL
146
+
147
+# Whether to waste disk space.
148
+install_ltlibs=$install_ltlibs 
149
+
150
+# What to do with -release.
151
+#  yes - only for shared archive
152
+#  no  - ingnore
153
+#  all - for all archives
154
+release_suffix=$release_suffix
155
 
156
 # Whether or not to build shared libraries.
157
 build_libtool_libs=$enable_shared
(-)files/patch-ag.orig (-14 lines)
Removed Link Here
1
2
$FreeBSD: ports/devel/libtool/files/patch-ag,v 1.1 2001/02/05 08:21:54 reg Exp $
3
4
--- libltdl/configure	2001/01/31 10:58:38	1.1
5
+++ libltdl/configure	2001/01/31 10:59:14
6
@@ -1455,7 +1455,7 @@
7
 esac
8
 
9
 # Check for any special flags to pass to ltconfig.
10
-libtool_flags="--cache-file=$cache_file"
11
+libtool_flags="--cache-file=$cache_file --disable-ltlibs"
12
 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
13
 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
14
 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"

Return to bug 44151