From: Alexandre Oliva Date: Fri, 12 Feb 1999 13:13:54 +0000 (+0000) Subject: * ltmain.in: create libname.lai at link time, not at install time, X-Git-Tag: release-1-2f~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcf1aa777f455997c03e1bf933932cdae4b99ec6;p=thirdparty%2Flibtool.git * ltmain.in: create libname.lai at link time, not at install time, Reported by Akim Demaille --- diff --git a/ChangeLog b/ChangeLog index bab346528..8c3103cad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-02-12 Alexandre Oliva + * 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 + * libltdl/ltdl.c (tryall_dlopen): strcmp filenames was reversed 1999-02-11 Thomas Tanner diff --git a/ltmain.in b/ltmain.in index f0ba67a4b..14006bb41 100644 --- 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"