You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-plugins/gkrellkam/files/gkrellkam-2.0.0-makefile.patch

26 lines
664 B

--- a/Makefile
+++ b/Makefile
@@ -12,10 +12,10 @@
# This should point to the GKrellM headers
GKRELLM_HDRS = /usr/include
-CC := gcc
+CC = $(CC)
GTKFLAGS := $(shell pkg-config gtk+-2.0 --cflags)
-CFLAGS := $(CFLAGS) -fPIC -Wall $(GTKFLAGS) -I$(GKRELLM_HDRS)
-LDFLAGS := -shared -Wl
+CFLAGS := $(CFLAGS) -fPIC $(GTKFLAGS) -I$(GKRELLM_HDRS)
+LFLAGS = -shared
INST_DIR := $(DESTDIR)/usr/lib/gkrellm2/plugins
USER_INST_DIR := $(DESTDIR)$(HOME)/.gkrellm2/plugins
MANPAGES := gkrellkam-list.5
@@ -26,7 +26,7 @@
all: $(TARGET).so
%.so: %.o
- $(CC) $(LDFLAGS) -o $@ $<
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LFLAGS) -o $@ $<
clean:
-rm -f $(TARGET).so $(TARGET).o