summaryrefslogtreecommitdiff
blob: 2175276c351fdd0bb2926598e67da9027b65f475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Only dump -L/-rpath if libdir is non-standard

--- smpeg-config.in
+++ smpeg-config.in
@@ -45,11 +45,13 @@
       echo $includes -I@includedir@/smpeg `@SDL_CONFIG@ --cflags`
       ;;
     --libs)
+      if [ "@libdir@" != "/usr/lib" ]; then
       if [ "`uname`" = "SunOS" ]; then
         libdirs="-L@libdir@ -R@libdir@"
       else
         libdirs="-L@libdir@ @SMPEG_RLD_FLAGS@"
       fi
+      fi
       echo $libdirs -lsmpeg `@SDL_CONFIG@ --libs`
       ;;
     *)