openbsd-ports/devel/sdl/patches/patch-configure
brad ae866d383f - shorten patches for configure/configure.in by not unnecessarily changing
pthreads flags for other OS's that have nothing todo with compilation on
OpenBSD.
- change linker flag from "-Wl,-R" to "-Wl,-rpath," so that this will
possibly even get through a compile on our ELF archs (tested on sparc, not
tested on an ELF arch but this is definately a first step in the right
direction).
--
Ok'd by: maintainer
2001-04-21 15:37:57 +00:00

25 lines
715 B
Plaintext

$OpenBSD: patch-configure,v 1.2 2001/04/21 15:37:57 brad Exp $
--- configure.orig Mon Mar 26 22:39:34 2001
+++ configure Fri Apr 20 21:16:59 2001
@@ -3303,6 +3303,9 @@ echo "configure:3292: checking for OSS a
#ifdef __bsdi__
#include <sys/soundcard.h>
#endif
+ #ifdef __OpenBSD__
+ #include <soundcard.h>
+ #endif
#ifdef __USLC__
#include <sys/soundcard.h>
#endif
@@ -8633,6 +8636,10 @@ fi
if test $ARCH = solaris; then
SDL_RLD_FLAGS="-R\${exec_prefix}/lib"
+fi
+
+if test $ARCH = openbsd; then
+ SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib -Wl,-rpath,\${X11BASE}/lib"
fi
if test x$enable_video = xtrue; then