Blame SOURCES/nspr-config-pc.patch

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