AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.10.18 13:03 "[Tiff] libtiff-3.7.0 -- bad shared lib names + patch", by Peter Breitenlohner
2004.10.18 14:17 "Re: [Tiff] libtiff-3.7.0 -- bad shared lib names + patch", by Bob Friesenhahn

2004.10.18 13:03 "[Tiff] libtiff-3.7.0 -- bad shared lib names + patch", by Peter Breitenlohner

Hi,

I just fetched tiff-3.7.0 and tried to build it (on a linux/gnu system).

In order to do so successfully I had to apply the attached patch. Without the patch the '.so' was missing in all shared library names.

NB: there is a libtool-1.5.6 around, so why not upgrade?

NB: I'm not going to subscribe to the libtiff mailing list just in order to submit this patch (nor am I going through bugzilla).

regards
Peter Breitenlohner <peb@mppmu.mpg.de>

diff -ur tiff-3.7.0.orig/ltmain.sh tiff-3.7.0/ltmain.sh

--- tiff-3.7.0.orig/ltmain.sh   2004-10-14 19:53:25.000000000 +0200
+++ tiff-3.7.0/ltmain.sh        2004-10-18 14:49:01.000000000 +0200

@@ -2862,7 +2862,7 @@
       case $outputname in
       lib*)

        name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
-       eval shared_ext=\"$shrext\"
+       eval shared_ext=\"$shrext_cmds\"

        eval libname=\"$libname_spec\"
        ;;
       *)
@@ -2874,7 +2874,7 @@
        if test "$need_lib_prefix" != no; then

          # Add the "lib" prefix for modules if required
          name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`

-         eval shared_ext=\"$shrext\"
+         eval shared_ext=\"$shrext_cmds\"
          eval libname=\"$libname_spec\"

        else
          libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
@@ -3637,7 +3637,7 @@
        fi

        # Get the real and link names of the library.
-       eval shared_ext=\"$shrext\"
+       eval shared_ext=\"$shrext_cmds\"

        eval library_names=\"$library_names_spec\"
        set dummy $library_names
        realname="$2"