File moonlight-2.4-underlinking.patch of Package moonlight
Index: plugin/Makefile.am
===================================================================
--- plugin/Makefile.am.orig
+++ plugin/Makefile.am
@@ -24,7 +24,7 @@ INCLUDES = \
#--- libmoonloader ----------------------
libmoonloader_la_LDFLAGS = \
- -avoid-version -rpath $(pluginlibdir) -R $(pluginlibdir) -R $(libdir)
+ -avoid-version -rpath $(pluginlibdir)
libmoonloader_la_LIBADD = -ldl $(LOADER_LIBS)
@@ -41,7 +41,7 @@ libmoonloaderxpi_la_SOURCES = $(libmoonl
#--- libmoonplugin ----------------------
libmoonplugin_la_LDFLAGS = \
- -avoid-version -rpath $(pluginlibdir) -R $(pluginlibdir) -R $(libdir)
+ -avoid-version -rpath $(pluginlibdir)
libmoonplugin_la_LIBADD = $(top_builddir)/src/libmoon.la $(PLUGIN_LIBS)
Index: src/Makefile.am
===================================================================
--- src/Makefile.am.orig
+++ src/Makefile.am
@@ -268,6 +268,8 @@ EXTRA_DIST = \
zip/ChangeLogUnzip \
$(libmoon_include_headers)
+libmoon_la_LDFLAGS = -R $(pkglibdir)
+
libmoon_la_LIBADD = $(MOON_LIBS)
libmoonxpi_la_LDFLAGS = -rpath /nowhere
Index: plugin/curl/Makefile.am
===================================================================
--- plugin/curl/Makefile.am.orig
+++ plugin/curl/Makefile.am
@@ -22,7 +22,7 @@ libmoonplugin_curlbridge_la_SOURCES= cur
curl-http.h
libmoonplugin_curlbridge_la_LDFLAGS=-module -avoid-version
-libmoonplugin_curlbridge_la_LIBADD=$(CURL_LIBS) ../libmoonplugin.la ../../src/libmoon.la
+libmoonplugin_curlbridge_la_LIBADD=$(CURL_LIBS) ../../src/libmoon.la
libmoonpluginxpi_curlbridge_la_SOURCES = $(libmoonplugin_curlbridge_la_SOURCES)
libmoonpluginxpi_curlbridge_la_LDFLAGS = $(libmoonplugin_curlbridge_la_LDFLAGS) -rpath /nowhere
Index: plugin/firefox/ff3/Makefile.am
===================================================================
--- plugin/firefox/ff3/Makefile.am.orig
+++ plugin/firefox/ff3/Makefile.am
@@ -21,7 +21,7 @@ libmoonplugin_ff3bridge_la_SOURCES= ff3-
../ff-common.h
libmoonplugin_ff3bridge_la_LDFLAGS=-module -avoid-version
-libmoonplugin_ff3bridge_la_LIBADD=$(FF3_LIBS) ../../libmoonplugin.la ../../../src/libmoon.la
+libmoonplugin_ff3bridge_la_LIBADD=$(FF3_LIBS) ../../../src/libmoon.la
libmoonpluginxpi_ff3bridge_la_SOURCES = $(libmoonplugin_ff3bridge_la_SOURCES)
libmoonpluginxpi_ff3bridge_la_LDFLAGS = $(libmoonplugin_ff3bridge_la_LDFLAGS) -rpath /nowhere