Blame SOURCES/nspr-config-pc.patch

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