blob: 4457be2ffc887aa4c139727c4f6e053cf0e468bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Only output -L -rpath cruft if using a non-standard install location.
Makes ABI / cross-compiling easier on the soul.
--- sdl-config.in
+++ sdl-config.in
@@ -51,7 +51,11 @@
#echo $includes -I@includedir@/SDL @SDL_CFLAGS@
;;
@ENABLE_SHARED_TRUE@ --libs)
-@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@ @SDL_RLD_FLAGS@"
+@ENABLE_SHARED_TRUE@ if test x"${prefix}" != x"/usr" ; then
+@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@ @SDL_RLD_FLAGS@"
+@ENABLE_SHARED_TRUE@ else
+@ENABLE_SHARED_TRUE@ libdirs=""
+@ENABLE_SHARED_TRUE@ fi
@ENABLE_SHARED_TRUE@ echo $libdirs @SDL_LIBS@ @SHARED_SYSTEM_LIBS@
@ENABLE_SHARED_TRUE@ ;;
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
|