Reported upstream:
https://sourceforge.net/tracker/?func=detail&atid=989750&aid=3131118&group_id=204472

=== modified file 'plugins/audio/G722/Makefile.in'
--- plugins/audio/G722/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/G722/Makefile.in	2010-12-07 05:49:21 +0000
@@ -71,11 +71,9 @@
 
 $(PLUGIN): $(OBJECTS)
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif	
 
 install:

=== modified file 'plugins/audio/G726/Makefile.in'
--- plugins/audio/G726/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/G726/Makefile.in	2010-12-07 05:49:51 +0000
@@ -100,11 +100,9 @@
 $(PLUGIN): $(OBJECTS)
 
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else	
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif	
 
 install:

=== modified file 'plugins/audio/GSM0610/Makefile.in'
--- plugins/audio/GSM0610/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/GSM0610/Makefile.in	2010-12-07 05:50:09 +0000
@@ -160,11 +160,9 @@
 $(PLUGIN): $(OBJECTS)
 
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else 
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif
 
 endif

=== modified file 'plugins/audio/IMA_ADPCM/Makefile.in'
--- plugins/audio/IMA_ADPCM/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/IMA_ADPCM/Makefile.in	2010-12-07 05:50:53 +0000
@@ -90,11 +90,9 @@
 $(PLUGIN): $(OBJECTS)
 
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else	
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif	
 
 install:

=== modified file 'plugins/audio/LPC_10/Makefile.in'
--- plugins/audio/LPC_10/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/LPC_10/Makefile.in	2010-12-07 05:51:07 +0000
@@ -128,11 +128,9 @@
 $(PLUGIN): $(OBJECTS)
 
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else	
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif	
 
 install:

=== modified file 'plugins/audio/SBC/Makefile.in'
--- plugins/audio/SBC/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/SBC/Makefile.in	2010-12-07 05:51:28 +0000
@@ -78,7 +78,7 @@
 OBJECTS	= $(addprefix $(OBJDIR)/,$(patsubst %.cxx,%.o,$(patsubst %.c,%.o,$(notdir $(SRCS)))))
 
 $(PLUGIN): $(OBJECTS)
-	$(Q_LD)$(CXX) $(LDSO) -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 
 $(SRCDIR)/g711a1_plc.cxx: ../../../src/codec/g711a1_plc.cxx
 	@ln -s ../../../src/codec/g711a1_plc.cxx $(SRCDIR)/g711a1_plc.cxx

=== modified file 'plugins/audio/Speex/Makefile.in'
--- plugins/audio/Speex/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/Speex/Makefile.in	2010-12-07 05:51:51 +0000
@@ -166,11 +166,9 @@
 
 $(PLUGIN): $(OBJECTS)
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CXX) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else	
-	$(Q_LD)$(CXX) $(LDSO) -o $@ $^ $(EXTRALIBS)
-
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif
 
 install:

=== modified file 'plugins/audio/celt/Makefile.in'
--- plugins/audio/celt/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/celt/Makefile.in	2010-12-07 05:48:49 +0000
@@ -47,11 +47,9 @@
 $(PLUGIN): $(OBJECTS)
 
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(LIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(LIBS)
 else	
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(LIBS)
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(LIBS)
 endif
 
 install:

=== modified file 'plugins/audio/gsm-amr/Makefile.in'
--- plugins/audio/gsm-amr/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/gsm-amr/Makefile.in	2010-12-07 05:50:25 +0000
@@ -59,11 +59,9 @@
 $(PLUGIN): $(OBJECTS)
 
 ifeq (solaris,$(findstring solaris,$(target_os)))
-
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^
 else	
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^
-
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^
 endif	
 
 install:

=== modified file 'plugins/audio/iLBC/Makefile.in'
--- plugins/audio/iLBC/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/audio/iLBC/Makefile.in	2010-12-07 05:50:41 +0000
@@ -119,9 +119,9 @@
 
 $(PLUGIN): $(OBJECTS)
 ifeq (solaris,$(findstring solaris,$(target_os)))
-	$(Q_LD)$(CC) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(EXTRALIBS)
 else	
-	$(Q_LD)$(CC) $(LDSO) -o $@ $^ $(EXTRALIBS)
+	$(Q_LD)$(CC) $(LDFLAGS) $(LDSO) -o $@ $^ $(EXTRALIBS)
 endif	
 
 install:

=== modified file 'plugins/video/H.261-vic/Makefile.in'
--- plugins/video/H.261-vic/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/video/H.261-vic/Makefile.in	2010-12-07 05:45:17 +0000
@@ -116,9 +116,9 @@
 
 $(PLUGIN): $(OBJECTS)
 ifeq (,$(findstring solaris,$(target_os)))
-	$(Q_LD)$(CXX) $(LDSO) -o $@ $^
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $(LDFLAGS) -o $@ $^
 else	
-	$(Q_LD)$(CXX) $(LDSO) $@ -o $@ $^
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $@ -o $@ $^
 endif
 
 install:

=== modified file 'plugins/video/H.263-1998/Makefile.in'
--- plugins/video/H.263-1998/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/video/H.263-1998/Makefile.in	2010-12-07 05:45:53 +0000
@@ -86,9 +86,9 @@
 
 $(PLUGIN): $(OBJECTS)
 ifeq (,$(findstring solaris,$(target_os)))
-	$(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) -o $@ $^ $(LDFLAGS)
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) -o $@ $^ $(DL_LIBS)
 else	
-	$(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) $@ -o $@ $^ $(LDFLAGS)
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(DL_LIBS)
 endif
     
 install: $(PLUGIN)

=== modified file 'plugins/video/H.264/Makefile.in'
--- plugins/video/H.264/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/video/H.264/Makefile.in	2010-12-07 05:46:27 +0000
@@ -130,9 +130,9 @@
 $(PLUGIN): $(OBJECTS)
 	@set -e; $(foreach dir,$(SUBDIRS),if test -d ${dir} ; then $(MAKE) -C $(dir); fi ; )
 ifeq (,$(findstring solaris,$(target_os)))
-	$(Q_LD)$(CXX) $(LDSO) $(LDFLAGS) $(DL_LIBS) -o $@ $^
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $(LDFLAGS) -o $@ $^ $(DL_LIBS)
 else
-	$(Q_LD)$(CXX) $(LDSO) $(LDFLAGS) $(DL_LIBS) $@ -o $@ $^
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $(LDFLAGS) $@ -o $@ $^ $(DL_LIBS)
 endif
 
 

=== modified file 'plugins/video/MPEG4-ffmpeg/Makefile.in'
--- plugins/video/MPEG4-ffmpeg/Makefile.in	2010-12-07 05:39:18 +0000
+++ plugins/video/MPEG4-ffmpeg/Makefile.in	2010-12-07 05:47:12 +0000
@@ -101,9 +101,9 @@
 
 $(PLUGIN): $(OBJECTS)
 ifeq (,$(findstring solaris,$(target_os)))
-	$(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) -o $@ $^
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) -o $@ $^ $(DL_LIBS)
 else	
-	$(Q_LD)$(CXX) $(LDSO) $(DL_LIBS) $@ -o $@ $^
+	$(Q_LD)$(CXX) $(LDFLAGS) $(LDSO) $@ -o $@ $^ $(DL_LIBS)
 endif
 
 install: