AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 1997

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



1997.01.24 13:29 "Shared libtiff on HP/UX 9.01 with c89", by Ulrik Dickow

In tiff-v3.4beta035/html/bugs.html Sam Leffler says:

> The only thing that I ask in return is that you tell me when you find a
> problem or fix a bug

OK, so here's my contribution.  To build libtiff (v3.4beta035) as a shared
library on HP/UX 9.01 with the c89 compiler, add a single line to `configure'
as indicated by this patch:

===========================================================================
--- tiff-v3.4beta035/configure.shipped	Tue Jun 11 00:24:56 1996
+++ tiff-v3.4beta035/configure	Thu Jan 23 17:05:42 1997
@@ -1115,6 +1115,7 @@
 	LIBCOPTS="+Z"
 #	LIBPORT="-Wl,+b${DIR_LIB}"
 	DSO=HPUX
+	TIFFLIBREF="-Wl,+s,+b${DIR_LIB} -L\${DEPTH}/libtiff -ltiff"
 	;;
     *-solaris*-yes)
 	DSOSUF=so
===========================================================================

Otherwise the tiff tools won't be able to find libtiff.sl when the build
directory has been deleted (and libtiff.sl installed in e.g. /usr/local/lib).
Note that linking with `-L... -ltiff' instead of `.../libtiff.sl' is needed.
The `+s' is optional; it makes the tools search SHLIB_PATH before looking in
the `+b' directory.

(The `+b' option in libtiff/Makefile.in doesn't help the tools find libtiff.)

-- 
Ulrik Dickow                        Snail Mail:  Kampsax Technology
E-mail: ukd@kampsax.dk                           P.O. Box 1142
Phone:  +45 36 39 08 00                          DK-2650 Hvidovre
Fax:    +45 36 77 03 01                          Denmark