summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2008-12-09 17:12:34 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2008-12-09 17:12:34 +0000
commit22bc552989eb3854b099664a955e978e79429e53 (patch)
treed9dff6c4545c11790250e6af8c3da20ccfd389d0 /gnustep-apps/cynthiune/files
parentNew feature: USE=gzip to compress .idx and .dict files. Small cleanup. (diff)
downloadgentoo-2-22bc552989eb3854b099664a955e978e79429e53.tar.gz
gentoo-2-22bc552989eb3854b099664a955e978e79429e53.tar.bz2
gentoo-2-22bc552989eb3854b099664a955e978e79429e53.zip
Fix compilation with --as-needed, bug #250170
(Portage version: 2.2_rc17/cvs/Linux 2.6.26-gentoo x86_64)
Diffstat (limited to 'gnustep-apps/cynthiune/files')
-rw-r--r--gnustep-apps/cynthiune/files/cynthiune-0.9.5-as-needed.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnustep-apps/cynthiune/files/cynthiune-0.9.5-as-needed.patch b/gnustep-apps/cynthiune/files/cynthiune-0.9.5-as-needed.patch
new file mode 100644
index 000000000000..e707a44a2a4b
--- /dev/null
+++ b/gnustep-apps/cynthiune/files/cynthiune-0.9.5-as-needed.patch
@@ -0,0 +1,22 @@
+--- frameworks.make.orig 2008-12-09 18:05:15.000000000 +0100
++++ frameworks.make 2008-12-09 18:05:22.000000000 +0100
+@@ -2,13 +2,16 @@
+
+ ADDITIONAL_INCLUDE_DIRS += $(foreach fdir,$(foreach fdir,$(FRAMEWORKS_DIRS),$(foreach framework,$(FRAMEWORKS),$(wildcard $(fdir)/$(framework).framework))),-I$(fdir)/Headers)
+ ifeq (yes, $(local-build))
+- _ldflags = $(foreach framework,$(FRAMEWORKS),$(foreach efdir,$(foreach fdir,$(FRAMEWORKS_DIRS),$(wildcard $(fdir)/$(framework).framework)), -Wl,-rpath,$(if $(wildcard $(shell pwd)/$(efdir)),$(shell pwd)/$(efdir),$(efdir))/Versions/Current -L$(efdir)/Versions/Current) -l$(framework))
++ _ldflags = $(foreach framework,$(FRAMEWORKS),$(foreach efdir,$(foreach fdir,$(FRAMEWORKS_DIRS),$(wildcard $(fdir)/$(framework).framework)), -Wl,-rpath,$(if $(wildcard $(shell pwd)/$(efdir)),$(shell pwd)/$(efdir),$(efdir))/Versions/Current -L$(efdir)/Versions/Current))
++ _libs = $(foreach framework,$(FRAMEWORKS), -l$(framework))
+ else
+- _ldflags = $(foreach framework,$(FRAMEWORKS),$(foreach efdir,$(foreach fdir,$(FRAMEWORKS_DIRS),$(wildcard $(fdir)/$(framework).framework)), -L$(efdir)/Versions/Current) -l$(framework))
++ _ldflags = $(foreach framework,$(FRAMEWORKS),$(foreach efdir,$(foreach fdir,$(FRAMEWORKS_DIRS),$(wildcard $(fdir)/$(framework).framework)), -L$(efdir)/Versions/Current))
++ _libs = $(foreach framework,$(FRAMEWORKS), -l$(framework))
+ endif
+
+ ifeq (mingw32, $(GNUSTEP_TARGET_OS))
+-ADDITIONAL_GUI_LIBS += -L$(FRAMEWORKS_DIRS)/../../Cynthiune.app $(_ldflags)
++ADDITIONAL_GUI_LIBS += -L$(FRAMEWORKS_DIRS)/../../Cynthiune.app $(_ldflags) $(_libs)
+ else
+ ADDITIONAL_LDFLAGS += $(_ldflags)
++ADDITIONAL_GUI_LIBS += $(_libs)
+ endif