openbsd-ports/devel/libslang/patches/patch-autoconf_acsite.m4
2001-02-08 02:05:35 +00:00

32 lines
734 B
Plaintext

--- autoconf/acsite.m4.orig Sun Feb 4 01:32:54 2001
+++ autoconf/acsite.m4 Wed Feb 7 15:50:44 2001
@@ -94,6 +94,9 @@
RPATH="-rpath "
fi
;;
+ *openbsd*)
+ RPATH="-Wl,-rpath,"
+ ;;
esac
])
@@ -543,6 +546,18 @@
CC_SHARED="cc \$(CFLAGS) -shared -K pic"
fi
;;
+ *openbsd* )
+ DYNAMIC_LINK_FLAGS=""
+ ELF_CC="$CC"
+ ELF_CFLAGS="$CFLAGS -fpic"
+ ELF_LINK="$CC -shared -fpic"
+ ELF_LINK_CMD="\$(ELF_LINK)"
+ ELF_DEP_LIBS=
+ CC_SHARED="$CC $CFLAGS -shared -fpic"
+ if test "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != ""; then
+ DYNAMIC_LINK_FLAGS="-Wl,-E"
+ fi
+ ;;
* )
echo "Note: ELF compiler for host_os=$host_os may be wrong"
ELF_CC="$CC"