summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-29 11:00:02 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-29 11:00:02 +0000
commita4606887f58d5fed51ebf326595cecd8147f1cd3 (patch)
tree755090d64ad4ae0ec358ade43c413279f0976fe0 /x11-plugins
parentFix building with -Wl,--as-needed wrt #285747 by Kacper Kowalik. (diff)
downloadgentoo-2-a4606887f58d5fed51ebf326595cecd8147f1cd3.tar.gz
gentoo-2-a4606887f58d5fed51ebf326595cecd8147f1cd3.tar.bz2
gentoo-2-a4606887f58d5fed51ebf326595cecd8147f1cd3.zip
Fix building with -Wl,--as-needed and respect LDFLAGS wrt #248605.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'x11-plugins')
-rw-r--r--x11-plugins/docker/ChangeLog8
-rw-r--r--x11-plugins/docker/files/docker-1.5-makefile.patch26
2 files changed, 23 insertions, 11 deletions
diff --git a/x11-plugins/docker/ChangeLog b/x11-plugins/docker/ChangeLog
index 062203c6da3a..27bba6fbbf48 100644
--- a/x11-plugins/docker/ChangeLog
+++ b/x11-plugins/docker/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-plugins/docker
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/docker/ChangeLog,v 1.20 2008/09/22 13:08:03 omp Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/docker/ChangeLog,v 1.21 2010/03/29 11:00:02 ssuominen Exp $
+
+ 29 Mar 2010; Samuli Suominen <ssuominen@gentoo.org>
+ files/docker-1.5-makefile.patch:
+ Fix building with -Wl,--as-needed and respect LDFLAGS wrt #248605.
22 Sep 2008; David Shakaryan <omp@gentoo.org> metadata.xml:
Change herd from commonbox to desktop-wm.
diff --git a/x11-plugins/docker/files/docker-1.5-makefile.patch b/x11-plugins/docker/files/docker-1.5-makefile.patch
index 3a98da19455c..d788bb630406 100644
--- a/x11-plugins/docker/files/docker-1.5-makefile.patch
+++ b/x11-plugins/docker/files/docker-1.5-makefile.patch
@@ -1,22 +1,21 @@
---- Makefile.orig 2002-11-20 11:20:49.000000000 +0100
-+++ Makefile 2008-01-27 20:14:14.000000000 +0100
-@@ -5,12 +5,12 @@
+--- Makefile.orig 2010-03-29 13:57:15.000000000 +0300
++++ Makefile 2010-03-29 13:59:11.000000000 +0300
+@@ -5,12 +5,10 @@
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Change this PREFIX to where you want docker to be installed
-PREFIX=/usr/local
-+PREFIX=/usr
- # Change this XLIBPATH to point to your X11 development package's installation
+-# Change this XLIBPATH to point to your X11 development package's installation
-XLIBPATH=/usr/X11R6/lib
-+XLIBPATH=/usr/lib
++PREFIX = /usr
# Sets some flags for stricter compiling
-CFLAGS=-pedantic -Wall -W -O
-+CFLAGS+=-pedantic -Wall -W
++CFLAGS += -pedantic -Wall -W
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# #
-@@ -24,7 +24,7 @@
+@@ -24,14 +22,14 @@
target=docker
sources=docker.c kde.c icons.c xproperty.c net.c
headers=docker.h kde.h icons.h xproperty.h net.h version.h
@@ -25,7 +24,16 @@
all: $(target) $(sources) $(headers)
@echo Build Successful
-@@ -40,7 +40,8 @@
+
+ $(target): $(sources:.c=.o)
+- $(CC) $(CFLAGS) -L$(XLIBPATH) -lX11 \
+- `pkg-config --libs glib-2.0` $^ -o $@
++ $(CC) $(LDFLAGS) $(CFLAGS) $^ -lX11 \
++ `pkg-config --libs glib-2.0` -o $@
+
+ %.o: %.c
+ $(CC) -c $(CFLAGS) `pkg-config --cflags glib-2.0` $<
+@@ -40,7 +38,8 @@
sed -e "s/@VERSION@/$(VERSION)/" version.h.in > $@
install: all