clxclient (3.6.1-6) makefile-02.patch

Summary

 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

Description: Patch is applied to fix build failure with binutils-gold.
Origin: Debian
Bug-Debian: http://bugs.debian.org/558847
Forwarded: fons@kokkinizita.net
---
Index: clxclient/Makefile
===================================================================
--- clxclient.orig/Makefile	2012-02-02 01:10:22.584984150 +0100
+++ clxclient/Makefile	2012-02-02 01:12:41.052980539 +0100
@@ -29,14 +29,14 @@
 
 
 CPPFLAGS += -Wall -I. -I/usr/X11R6/include `freetype-config --cflags` -fpic -DVERSION=\"$(VERSION)\" -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O2 
-LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR) `freetype-config --libs`
+LDFLAGS += -L$(PREFIX)/$(LIBDIR) -L/usr/X11R6/$(LIBDIR) -Wl,--as-needed `freetype-config --libs`
 LDLIBS +=
 
 
 CLXCLIENT_SO = libclxclient.so
 CLXCLIENT_MAJ = $(CLXCLIENT_SO).$(MAJVERS)
 CLXCLIENT_MIN = $(CLXCLIENT_MAJ).$(MINVERS)
-CLXCLIENT_DEP = -lpthread -lXft -lX11
+CLXCLIENT_DEP = -lpthread -lXft -lX11 -lclthreads
 CLXCLIENT_O = xdisplay.o xresman.o xhandler.o xwindow.o xdraw.o \
 	button.o textip.o enumip.o menuwin.o scale.o slider.o scroll.o mclist.o meter.o
 CLXCLIENT_H = clxclient.h