[csw-devel] SF.net SVN: gar:[7351] csw/mgar/pkg/nspr/trunk/files/nspr-4.6.1-config. patch
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Thu Nov 19 09:07:35 CET 2009
Revision: 7351
http://gar.svn.sourceforge.net/gar/?rev=7351&view=rev
Author: wahwah
Date: 2009-11-19 08:07:34 +0000 (Thu, 19 Nov 2009)
Log Message:
-----------
nspr: Adding a patch copied from Gentoo, adds nspr.pc
Added Paths:
-----------
csw/mgar/pkg/nspr/trunk/files/nspr-4.6.1-config.patch
Added: csw/mgar/pkg/nspr/trunk/files/nspr-4.6.1-config.patch
===================================================================
--- csw/mgar/pkg/nspr/trunk/files/nspr-4.6.1-config.patch (rev 0)
+++ csw/mgar/pkg/nspr/trunk/files/nspr-4.6.1-config.patch 2009-11-19 08:07:34 UTC (rev 7351)
@@ -0,0 +1,89 @@
+--- a/mozilla/nsprpub/lib/libc/src/Makefile.in.orig 2005-06-01 14:28:26.000000000 +0000
++++ b/mozilla/nsprpub/lib/libc/src/Makefile.in 2006-01-15 02:50:39.000000000 +0000
+@@ -112,6 +112,10 @@
+ MKSHLIB += -R '$$ORIGIN'
+ endif
+
++ifeq ($(OS_ARCH), Linux)
++DSO_LDOPTS +=-Wl,-R,'$$ORIGIN'
++endif
++
+ ifeq ($(OS_ARCH),OS2)
+ MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
+ GARBAGE += $(MAPFILE)
+--- a/mozilla/nsprpub/lib/ds/Makefile.in.orig 2005-06-01 14:28:25.000000000 +0000
++++ b/mozilla/nsprpub/lib/ds/Makefile.in 2006-01-15 02:52:30.000000000 +0000
+@@ -102,6 +102,10 @@
+ MKSHLIB += -R '$$ORIGIN'
+ endif
+
++ifeq ($(OS_ARCH), Linux)
++DSO_LDOPTS += -Wl,-R,'$$ORIGIN'
++endif
++
+ ifeq ($(OS_ARCH),OS2)
+ MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
+ GARBAGE += $(MAPFILE)
+--- a/mozilla/nsprpub/pr/src/Makefile.in.orig 2005-06-01 14:28:27.000000000 +0000
++++ b/mozilla/nsprpub/pr/src/Makefile.in 2006-01-15 03:29:36.000000000 +0000
+@@ -168,6 +168,7 @@
+ else
+ OS_LIBS = -ldl
+ endif
++DSO_LDOPTS +=-Wl,-R,'$$ORIGIN'
+ endif
+
+ ifeq ($(OS_ARCH),HP-UX)
+--- a/mozilla/nsprpub/config/Makefile.in.orig 2005-06-01 14:28:23.000000000 +0000
++++ b/mozilla/nsprpub/config/Makefile.in 2006-01-15 04:13:42.000000000 +0000
+@@ -54,7 +54,7 @@
+ # because it is included by every makefile.
+ DIST_GARBAGE = nsprincl.mk nsprincl.sh nspr-config
+
+-RELEASE_BINS = nspr-config
++RELEASE_BINS = nspr-config nspr.pc
+
+ include $(topsrcdir)/config/config.mk
+
+@@ -139,6 +139,7 @@
+
+ export:: $(TARGETS)
+ rm -f $(dist_bindir)/nspr-config
++ rm -f $(dist_bindir)/nspr.pc
+
+ ifdef WRAP_SYSTEM_INCLUDES
+ export::
+--- a/mozilla/nsprpub/config/nspr.pc.in.orig 1970-01-01 00:00:00.000000000 +0000
++++ b/mozilla/nsprpub/config/nspr.pc.in 2006-01-15 04:12:23.000000000 +0000
+@@ -0,0 +1,10 @@
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++includedir=@includedir@
++
++Name: NSPR
++Description: The Netscape Portable Runtime
++Version: @MOD_MAJOR_VERSION at .@MOD_MINOR_VERSION at .@MOD_PATCH_VERSION@
++Libs: -L${libdir} -lplds4 -lplc4 -lnspr4 @OS_LIBS@ -Wl,-R${libdir}
++Cflags: -I${includedir}
+--- a/mozilla/nsprpub/configure.orig 2006-01-15 04:17:59.000000000 +0000
++++ b/mozilla/nsprpub/configure 2006-01-15 04:21:35.000000000 +0000
+@@ -5899,6 +5899,7 @@
+ config/nsprincl.mk
+ config/nsprincl.sh
+ config/nspr-config
++config/nspr.pc
+ lib/Makefile
+ lib/ds/Makefile
+ lib/libc/Makefile
+--- a/mozilla/nsprpub/config/nspr-config.in.orig 2005-05-11 00:53:41.000000000 +0000
++++ b/mozilla/nsprpub/config/nspr-config.in 2006-01-15 06:37:58.000000000 +0000
+@@ -122,7 +122,7 @@
+ fi
+
+ if test "$echo_libs" = "yes"; then
+- libdirs=-L$libdir
++ libdirs="-Wl,-R$libdir -L$libdir"
+ if test -n "$lib_plds"; then
+ libdirs="$libdirs -lplds${major_version}"
+ fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list