openbsd-ports/graphics/tiff/patches/patch-configure
2002-01-24 15:13:47 +00:00

18 lines
496 B
Plaintext

--- configure.orig Thu Nov 15 12:21:05 2001
+++ configure Wed Jan 23 20:46:16 2002
@@ -1179,8 +1179,12 @@ if [ "$DSO" = auto ]; then
DSO=GNULD
;;
*-openbsd*)
- DSOSUF=so.${DIST_MAJOR}.${DIST_MINOR}
- LIBCOPTS='-fpic'
+ DSOSUF=so.${DIST_MAJOR}${DIST_MINOR}.${DIST_POINT}
+ if [ "`uname -m`" = "sparc64" ]; then
+ LIBCOPTS='-fPIC'
+ else
+ LIBCOPTS='-fpic'
+ fi
TIFFLIBREF='-L${DEPTH}/libtiff -ltiff'
case "$TARGET" in
*-openbsd[01].* | *-openbsd2.[0-7] | *-openbsd2.[0-7].*)