Blame SOURCES/nspr-config-pc.patch

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