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-wm/spectrwm/files/spectrwm-2.5.0-Makefile.patch

21 lines
824 B

--- spectrwm-2.5.0/linux/Makefile
+++ spectrwm-2.5.0/linux/Makefile
@@ -5,7 +5,7 @@
LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
-CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
+CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized
CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"$(LIBDIR)/libswmhack.so.$(LVERS)\"
LDADD+= -lX11 -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest -lXft -lXcursor
@@ -29,7 +29,7 @@
$(CC) $(LDFLAGS) -o $@ $+ $(LDADD)
%.so: %.c
- $(CC) $(CFLAGS) -c -fpic -DPIC $+ -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) -c -fpic -DPIC $+ -o $@
libswmhack.so.$(LVERS): swm_hack.so
$(CC) $(LDFLAGS) -Wl,-soname,$@ -shared -fpic -o libswmhack.so.$(LVERS) swm_hack.so $(LDADD)