summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-07-26 14:01:34 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-07-26 14:01:34 +0000
commitafcd9119754c4e740c56d6d5b0f2f8343549a642 (patch)
tree858e9a666a280c3b4ae69309dba02ce9651eaff6 /media-gfx/fotoxx/files
parentFix the dep order + fix elog information per bug #329845. (diff)
downloadhistorical-afcd9119754c4e740c56d6d5b0f2f8343549a642.tar.gz
historical-afcd9119754c4e740c56d6d5b0f2f8343549a642.tar.bz2
historical-afcd9119754c4e740c56d6d5b0f2f8343549a642.zip
Fix building with -Wl,--as-needed wrt #329901 by Nao Nakashima.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'media-gfx/fotoxx/files')
-rw-r--r--media-gfx/fotoxx/files/fotoxx-makefile.patch41
1 files changed, 37 insertions, 4 deletions
diff --git a/media-gfx/fotoxx/files/fotoxx-makefile.patch b/media-gfx/fotoxx/files/fotoxx-makefile.patch
index 2b7985802a0e..ba3124cc8be0 100644
--- a/media-gfx/fotoxx/files/fotoxx-makefile.patch
+++ b/media-gfx/fotoxx/files/fotoxx-makefile.patch
@@ -1,10 +1,43 @@
-diff -U2 -r fotoxx-10.7.orig//Makefile fotoxx-10.7//Makefile
---- fotoxx-10.7.orig//Makefile 2010-07-07 23:31:04.000000000 +0700
-+++ fotoxx-10.7//Makefile 2010-07-16 19:06:59.000000000 +0700
-@@ -17,5 +17,5 @@
+http://bugs.gentoo.org/329901 and misc fixes
+
+--- Makefile
++++ Makefile
+@@ -5,30 +5,30 @@
+ SOURCE = $(PROGRAM)-$(VERSION).cc
+
+ # defaults for parameters that may be pre-defined
+-CXXFLAGS ?= -O3 -g -Wall
+-LDFLAGS ?= -O3 -g -Wall -rdynamic
++CXXFLAGS += -Wall
++LDFLAGS += -rdynamic
+ PREFIX ?= /usr/local
+
+-CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-2.0`
+-LFLAGS = $(LDFLAGS) `pkg-config --libs gtk+-2.0 gthread-2.0`
++CXXFLAGS += -c `pkg-config --cflags gtk+-2.0`
++LIBS = `pkg-config --libs gtk+-2.0 gthread-2.0`
+
+ BINDIR = $(PREFIX)/bin
+ DATADIR = $(PREFIX)/share/$(PROGRAM)
ICONDIR = $(DATADIR)/icons
DESKTOP = $(DATADIR)/kornelix-$(PROGRAM).desktop
-DOCDIR = $(PREFIX)/share/doc/$(PROGRAM)
+DOCDIR = $(PREFIX)/share/doc/$(PF)
MANDIR = $(PREFIX)/share/man/man1
+ $(PROGRAM): $(PROGRAM).o zfuncs.o
+ @ ./dependencies.sh
+- $(CXX) $(LFLAGS) -ltiff -o $(PROGRAM) $(PROGRAM).o zfuncs.o
++ $(CXX) $(LDFLAGS) -o $(PROGRAM) $(PROGRAM).o zfuncs.o -ltiff $(LIBS)
+
+ $(PROGRAM).o: $(SOURCE)
+- $(CXX) $(CFLAGS) -o $(PROGRAM).o $(SOURCE) \
++ $(CXX) $(CXXFLAGS) -o $(PROGRAM).o $(SOURCE) \
+ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\""
+
+ zfuncs.o: zfuncs.cc
+- $(CXX) $(CFLAGS) zfuncs.cc \
++ $(CXX) $(CXXFLAGS) zfuncs.cc \
+ -D "DATADIR=\"$(DATADIR)\"" -D "DOCDIR=\"$(DOCDIR)\"" -D "BINDIR=\"$(BINDIR)\""
+
+ install: $(PROGRAM)