summaryrefslogtreecommitdiff
path: root/devel/libtool/patches/patch-ab
blob: eb49fd6511e0f831749ad812d88a044f1a1108f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ab,v 1.6 1998/08/07 10:40:26 agc Exp $

--- ltmain.sh.orig	Tue Jul 21 16:59:33 1998
+++ ltmain.sh	Tue Jul 21 17:02:42 1998
@@ -144,6 +144,8 @@
     prev=execute_dlfiles
     ;;
 
+  --install-la) install_la="yes" ;;
+
   -*)
     $echo "$modename: unrecognized option \`$arg'" 1>&2
     $echo "$help" 1>&2
@@ -1841,10 +1843,12 @@
           IFS="$save_ifs"
         fi
 
+if test -n "$install_la"; then
         # Install the pseudo-library for information purposes.
         name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
         $show "$install_prog $file $destdir/$name"
         $run eval "$install_prog $file $destdir/$name" || exit $?
+fi
 
         # Maybe install the static library, too.
         test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
@@ -1912,6 +1916,7 @@
             exit 1
           fi
 
+if test -n "$install_la"; then
           finalize=yes
           for lib in $link_against_libtool_libs; do
             # Check to see that each library is installed.
@@ -1932,6 +1937,7 @@
               finalize=no
             fi
           done
+fi
 
           if test "$hardcode_action" = relink; then
             if test "$finalize" = yes; then