summaryrefslogtreecommitdiff
blob: 1a4726bdbfad5189271a12fe7fc77ca64f96be92 (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

--- a/smpeg-config.in
+++ b/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`
       ;;
     *)