openbsd-ports/devel/libelf/patches/patch-aclocal_m4
espie 59143cfe93 small library, used by some new experimental branch of GCC
allows people to manipulate elf files.
2006-07-12 08:45:58 +00:00

19 lines
536 B
Plaintext

$OpenBSD: patch-aclocal_m4,v 1.1.1.1 2006/07/12 08:45:58 espie Exp $
--- aclocal.m4.orig Sat May 21 17:39:19 2005
+++ aclocal.m4 Wed Jul 12 10:39:55 2006
@@ -269,6 +269,14 @@ AC_DEFUN(mr_ENABLE_SHARED, [
mr_enable_shared=no
fi
;;
+ *-openbsd*)
+ PICFLAGS='-fPIC -DPIC'
+ SHLIB_SFX='.so.$(MAJOR).0'
+ SHLINK_SFX='$(SHLIB_SFX)'
+ SONAME_SFX='$(SHLIB_SFX)'
+ LINK_SHLIB='$(CC) -shared'
+ INSTALL_SHLIB='$(INSTALL_PROGRAM)'
+ ;;
sparc-sun-solaris2*)
if test "$GCC" = yes; then
PICFLAGS='-fPIC -DPIC'