Blame SOURCES/nspr-config-pc.patch

f14557
diff -up nspr/config/nspr-config.in.flags nspr/config/nspr-config.in
f14557
--- nspr/config/nspr-config.in.flags	2013-05-29 13:46:34.147971410 -0700
f14557
+++ nspr/config/nspr-config.in	2013-05-29 14:17:10.990838914 -0700
f14557
@@ -102,7 +102,7 @@ if test -z "$includedir"; then
f14557
     includedir=@includedir@
f14557
 fi
f14557
 if test -z "$libdir"; then
f14557
-    libdir=@libdir@
f14557
+    libdir=`pkg-config --variable=libdir nspr`
f14557
 fi
f14557
 
f14557
 if test "$echo_prefix" = "yes"; then
f14557
@@ -136,12 +136,12 @@ if test "$echo_libs" = "yes"; then
f14557
       if test -n "$lib_nspr"; then
f14557
 	libdirs="$libdirs -lnspr${major_version}"
f14557
       fi
f14557
-      os_ldflags="@LDFLAGS@"
f14557
+      os_ldflags=`pkg-config --variable=ldflags nspr`
f14557
       for i in $os_ldflags ; do
f14557
 	if echo $i | grep \^-L >/dev/null; then
f14557
 	  libdirs="$libdirs $i"
f14557
         fi
f14557
       done
f14557
-      echo $libdirs @OS_LIBS@
f14557
+      echo $libdirs `pkg-config --variable=os_libs nspr`
f14557
 fi      
f14557
 
f14557
diff -up nspr/config/nspr.pc.in.flags nspr/config/nspr.pc.in
f14557
--- nspr/config/nspr.pc.in.flags	2013-05-29 13:48:15.026643570 -0700
f14557
+++ nspr/config/nspr.pc.in	2013-05-29 13:49:47.795202949 -0700
f14557
@@ -6,5 +6,5 @@ includedir=@includedir@
f14557
 Name: NSPR
f14557
 Description: The Netscape Portable Runtime
f14557
 Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
f14557
-Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@
f14557
+Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ @OS_LIBS@
f14557
 Cflags: -I@includedir@