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
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)
14 CFLAGS += $(shell pkg-config --cflags gtk+-2.0) -DGTK_DISABLE_BROKEN
15 CFLAGS += -DPROJNAME='"$(PROJNAME)"' -DVERSION='"$(VERSION)"'
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/' > $@