summaryrefslogtreecommitdiff
path: root/devel/SDL
diff options
context:
space:
mode:
authorjlam <jlam>2001-12-11 16:30:45 +0000
committerjlam <jlam>2001-12-11 16:30:45 +0000
commitd7df75e8bff59680d10a1d5f450b1ba04cafa306 (patch)
treea85e4132d8eac9a0fafedcb29998a8b460f340ce /devel/SDL
parenta68c0d7de2681eee381354b1865171572145d8e0 (diff)
downloadpkgsrc-d7df75e8bff59680d10a1d5f450b1ba04cafa306.tar.gz
Pass in LDFLAGS via SYSTEM_LIBS as it's used as the linker options for
finding various libraries. This ensure that any unusual -Wl,-R options are noted correctly in the generated sdl-config. This should fix problems noted by various people that building packages that depend on SDL bomb out with this error: checking for SDL - version >= 1.0.1... no *** Could not run SDL test program, checking why... *** The test program compiled, but did not run. This usually means *** that the run-time linker is not finding SDL or finding the wrong *** version of SDL. If it is not finding SDL, you'll need to set your *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point *** to the installed location Also, make sure you have run ldconfig if that *** is required on your system *** *** If you have an old version installed, it is best to remove it, although *** you may also be able to get things to work by modifying LD_LIBRARY_PATH configure: error: *** SDL version 1.0.1 not found! *** Error code 1 Stop. In particular, it fixes pkg/14833 and pkg/14912 by Robert Elz.
Diffstat (limited to 'devel/SDL')
-rw-r--r--devel/SDL/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/SDL/Makefile b/devel/SDL/Makefile
index 493777d6e26..03a7071a830 100644
--- a/devel/SDL/Makefile
+++ b/devel/SDL/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2001/11/29 19:46:10 jlam Exp $
+# $NetBSD: Makefile,v 1.27 2001/12/11 16:30:45 jlam Exp $
#
DISTNAME= SDL-1.2.2
+PKGREVISION= 1
CATEGORIES= devel games
MASTER_SITES= http://www.libsdl.org/release/
@@ -40,6 +41,12 @@ CONFIGURE_ARGS+= --disable-pthread-sem
CONFIGURE_ENV+= NASMFLAGS="${NASMFLAGS}"
MAKE_ENV+= NASMFLAGS="${NASMFLAGS}"
+# Pass in LDFLAGS via SYSTEM_LIBS as it's used as the linker options for
+# finding various libraries. This ensure that any unusual -Wl,-R options
+# are noted correctly in the generated sdl-config.
+#
+CONFIGURE_ENV+= SYSTEM_LIBS="${LDFLAGS}"
+
pre-patch:
cd ${WRKSRC} && ${MKDIR} src/audio/netbsd