summaryrefslogtreecommitdiff
blob: 457c934b6c40241b25419466413f66c9ce7faf38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Only output -L -rpath cruft if using a non-standard install location.

Makes ABI / cross-compiling easier on the soul.

--- a/sdl-config.in
+++ b/sdl-config.in
@@ -44,7 +44,12 @@
       echo -I@includedir@/SDL @SDL_CFLAGS@
       ;;
 @ENABLE_SHARED_TRUE@    --libs)
-@ENABLE_SHARED_TRUE@      echo -L@libdir@ @SDL_RLD_FLAGS@ @SDL_LIBS@
+@ENABLE_SHARED_TRUE@      if test x"${prefix}" != x"/usr" ; then
+@ENABLE_SHARED_TRUE@          libdirs="-L@libdir@"
+@ENABLE_SHARED_TRUE@      else
+@ENABLE_SHARED_TRUE@          libdirs=""
+@ENABLE_SHARED_TRUE@      fi
+@ENABLE_SHARED_TRUE@      echo $libdirs @SDL_RLD_FLAGS@ @SDL_LIBS@
 @ENABLE_SHARED_TRUE@      ;;
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@    --static-libs)
 @ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@    --libs|--static-libs)