Dash:
[t2-trunk.git] / package / themes / gtk-chtheme / 02-gtk-chtheme-0.3.1-asneeded.patch
blob8cceb98a7565313a38f6c0002e0f4dff272be363
1 # LDFLAGS is for linker flags, not libraries
2 # Fixes issue with forced --as-needed
4 # https://bugs.gentoo.org/show_bug.cgi?id=248655
5 --- a/Makefile 2009-02-26 00:43:54.000000000 +0100
6 +++ b/Makefile 2009-02-26 00:43:32.000000000 +0100
7 @@ -2,7 +2,7 @@
9 CFLAGS := $(if $(RPM_OPT_FLAGS), $(RPM_OPT_FLAGS), $(CFLAGS))
11 -LDFLAGS = $(shell pkg-config --libs gtk+-2.0)
12 +LIBS = $(shell pkg-config --libs gtk+-2.0)
13 CFLAGS += -Wall
14 CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN
15 CFLAGS += -DPROJNAME='"$(PROJNAME)"' -DVERSION='"$(VERSION)"'
16 @@ -17,7 +17,7 @@
17 all: $(EXENAME) $(EXENAME).1
19 $(EXENAME): $(addsuffix .o, $(SRC))
20 - $(CC) $(LDFLAGS) $^ -o $@
21 + $(CC) $(LDFLAGS) $^ $(LIBS) -o $@
23 $(EXENAME).1: $(EXENAME).pod
24 pod2man $< | sed 's/^\.TH .*/.TH $(EXENAME) 1/' > $@