Subject: CVS commit: pkgsrc/devel/SDL
To: None <pkgsrc-changes@netbsd.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: pkgsrc-changes
Date: 12/11/2001 18:30:46
Module Name:	pkgsrc
Committed By:	jlam
Date:		Tue Dec 11 16:30:46 UTC 2001

Modified Files:
	pkgsrc/devel/SDL: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -r1.26 -r1.27 pkgsrc/devel/SDL/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.