X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=libtool-kill-dependency_libs.sh;h=3d5f318b3de54428ce4a7287699ba1d381447487;hp=1403fbe29b22348a51839920ddb2ffe29ad219f7;hb=04ea1375c55aa67df4e7fc61dbb534111767f3b6;hpb=4cf4f2b66f850bb39c5bf29d3cd12ada9114d67e diff --git a/libtool-kill-dependency_libs.sh b/libtool-kill-dependency_libs.sh index 1403fbe..3d5f318 100755 --- a/libtool-kill-dependency_libs.sh +++ b/libtool-kill-dependency_libs.sh @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Run libtool as normal, then kill the dependency_libs line in the .la # file. Otherwise libtool will add DT_NEEDED entries for dependencies @@ -49,9 +49,12 @@ done # Run libtool as normal. #echo "${args[@]}" "${args[@]}" -mv "$output" "$output.tmp" -# Remove dependency_libs from output. -sed "s/^dependency_libs=.*/dependency_libs=''/" < "$output.tmp" > "$output" -chmod --reference="$output.tmp" "$output" -rm "$output.tmp" +if [ -n "$output" ]; then + mv "$output" "$output.tmp" + + # Remove dependency_libs from output. + sed "s/^dependency_libs=.*/dependency_libs=''/" < "$output.tmp" > "$output" + chmod --reference="$output.tmp" "$output" + rm "$output.tmp" +fi