AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1997.05.12 02:41 "FreeBSD shared-library", by Richard Mlynarik
1997.05.30 18:12 "Re: FreeBSD shared-library", by Sam Leffler
1997.06.02 14:27 "Re: FreeBSD shared-library", by Jeff Macdonald

1997.05.12 02:41 "FreeBSD shared-library", by Richard Mlynarik

I've fixed what seems to be an obvious bug in Linux shared-library building, but I'm in no position to test it. It looks like it would never have worked.

I'd guess that code nearly-identical to the freebsd stuff would work for BSDI and NetBSD; I'm not able to verify this, either.

It would be nice if the mailing list archives in ftp://ftp.sgi.com/graphics/tiff/archives/ were maintained; I don't have time to be on a mailing list, but it would be nice to be able to search for things when I cared.

--- configure.~1~       Mon Apr 29 15:16:17 1996
+++ configure   Sun May 11 19:32:41 1997
@@ -1126,7 +1126,7 @@
        LIBCOPTS="-K PIC"
        DSO=SOLARIS
        ;;
-    *-linux)
+    *-linux*)
        if [ -x /lib/libc.so.5 ]; then
            DSOSUF=so.${DIST_MAJOR}
            DSOSUF_VERSION=${DSOSUF}.${DIST_MINOR}.${DIST_ALPHA}
@@ -1134,6 +1134,13 @@
            DSOOPTS='-shared'
            DSO=LINUX
        fi
+       ;;
+    *-freebsd*)
+       DSOSUF=so
+       DSOLD='${LD}'
+       DSOOPTS='-Bshareable'
+       LIBCOPTS='-fpic'
+       DSO=FREEBSD
        ;;
     *-osf3*)
        DSOSUF=so
--- libtiff/Makefile.in.~1~     Mon Apr 29 15:16:21 1996
+++ libtiff/Makefile.in Sun May 11 19:33:55 1997
@@ -169,7 +169,7 @@
        ${LD} -elf -o libtiff.@DSOSUF@ -shared -no_unresolved -all ${OBJS} \
            @LIBJPEG@ @LIBGZ@ -lc -lm
        touch $@
-# Solaris 2.4
+# Solaris 2.x
 SOLARISdso: ${OBJS}
        ${LD} -L@DIR_LIB@ -G -o libtiff.@DSOSUF@ ${OBJS}
        touch $@
@@ -199,6 +199,10 @@
 # OSF/1 3.2 shared lib rule
 OSFdso: ${OBJS}
        ${LD} -o libtiff.@DSOSUF@ -shared -error_unresolved ${OBJS} @LIBJPEG@ @LIBGZ@ -lc -lm
+# FreeBSD 2.x
+FREEBSDdso: ${OBJS}
+       ${LD} -L@DIR_LIB@ -Bshareable -o libtiff.@DSOSUF@ ${OBJS}
+       touch $@
 
 
 ${OBJS}: ${SRCDIR}/tiffio.h ${SRCDIR}/tiff.h ${SRCDIR}/tif_dir.h