]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: create libname.lai at link time, not at install time,
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Fri, 12 Feb 1999 13:13:54 +0000 (13:13 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Fri, 12 Feb 1999 13:13:54 +0000 (13:13 +0000)
Reported by Akim Demaille <demaille@inf.enst.fr>

ChangeLog
ltmain.in

index bab3465280e38a92266e186d7e77226f235a1fba..8c3103cadcc7862adfc4076621fb8176f1278159 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-02-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltmain.in: create libname.lai at link time, not at install time,
+       but still create it at install time if it is missing
+       Reported by Akim Demaille <demaille@inf.enst.fr>
+
        * libltdl/ltdl.c (tryall_dlopen): strcmp filenames was reversed
 
 1999-02-11  Thomas Tanner  <tanner@gmx.de>
index f0ba67a4bfcc67637c4bf56dd6ea337f01d97ac7..14006bb41ef251e7c594ed269fa2d9396db0a993 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -2598,6 +2598,10 @@ installed=no
 # Directory that this library needs to be installed in:
 libdir='$install_libdir'\
 "
+
+       $rm "$output_dir/$outputname"i
+       sed 's/^installed=no$/installed=yes/' \
+         < "$output_dir/$outputname" > "$output_dir/$outputname"i
       fi
 
       # Do a symbolic link so that the libtool archive can be found in
@@ -2845,13 +2849,14 @@ libdir='$install_libdir'\
        # Install the pseudo-library for information purposes.
        name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
        instname="$dir/$name"i
-       $show "Creating $instname"
-       $rm "$instname"
-       sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
+       if test ! -f "$instname"; then
+         # Just in case it was removed...
+         $show "Creating $instname"
+         $rm "$instname"
+         sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
+       fi
        $show "$install_prog $instname $destdir/$name"
        $run eval "$install_prog $instname $destdir/$name" || exit $?
-       $show "$rm $instname"
-       $rm "$instname"
 
        # Maybe install the static library, too.
        test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"