]> git.sesse.net Git - vlc/blobdiff - vlc-config.in.in
Remove wrong -L${PREFIX}/lib from vlc-config
[vlc] / vlc-config.in.in
index 4649ed31fa793149bf4e296268efbd1f8ce00d55..4e5d1b3f0328ee2ebd9e5e1081aead9f2cccc183 100644 (file)
@@ -19,6 +19,7 @@ cflags=""
 cxxflags=""
 objcflags=""
 ldflags=""
+libs=""
 
 cflags_tuning="@CFLAGS_TUNING@"
 cflags_optim_size="@CFLAGS_OPTIM_SIZE@"
@@ -193,7 +194,10 @@ while test $# -gt 0; do
     --objcflags)
       echo_objcflags=yes
       ;;
-    --libs)
+    --ldflags)
+      echo_ldflags=yes
+      ;;
+    --libs|-libs)
       echo_libs=yes
       ;;
     -*)
@@ -216,7 +220,7 @@ while test $# -gt 0; do
       ;;
     external)
       echo_external=yes
-      ldflags="${ldflags} -lvlc -lvlc-control"
+      libs="${libs} -lvlc -lvlc-control"
       ;;      
     *)
       module="$1"
@@ -232,8 +236,6 @@ while test $# -gt 0; do
   shift
 done
 
-libs="-L@libdir@"
-
 #
 #  If a module was requested, use its name
 #
@@ -307,6 +309,9 @@ fi
 if test "${echo_objcflags}" = yes; then
   echo "${cppflags} ${objcflags}"
 fi
+if test "${echo_ldflags}" = yes; then
+  echo "${ldflags}"
+fi
 
 # Libs
 # There are 4 possibilities
@@ -328,12 +333,12 @@ if test "${echo_libs}" = yes; then
   fi
   if test "${echo_external}" = yes; then
     for module in `echo "${builtins}"`; do
-      ldflags="${ldflags} @libdir@/vlc/lib${module}.a"
+      libs="${libs} @libdir@/vlc/lib${module}.a"
     done
     for module in `echo "${builtins}"`; do
       register_flags "${module}"
     done
     register_flags "vlc"
   fi
-  echo "${libs} ${ldflags}"
+  echo "${libs}"
 fi