smpeg-0.4.4-config.patch 472 B

12345678910111213141516171819
  1. Only dump -L/-rpath if libdir is non-standard
  2. --- smpeg-config.in
  3. +++ smpeg-config.in
  4. @@ -45,11 +45,13 @@
  5. echo $includes -I@includedir@/smpeg `@SDL_CONFIG@ --cflags`
  6. ;;
  7. --libs)
  8. + if [ "@libdir@" != "/usr/lib" ]; then
  9. if [ "`uname`" = "SunOS" ]; then
  10. libdirs="-L@libdir@ -R@libdir@"
  11. else
  12. libdirs="-L@libdir@ @SMPEG_RLD_FLAGS@"
  13. fi
  14. + fi
  15. echo $libdirs -lsmpeg `@SDL_CONFIG@ --libs`
  16. ;;
  17. *)