void-packages/srcpkgs/sxhkd/patches/fix-1779.patch

23 lines
583 B
Diff
Raw Normal View History

2015-06-24 07:12:57 +00:00
--- Makefile.orig
+++ Makefile
@@ -3,8 +3,8 @@
CC ?= gcc
LIBS = -lm -lxcb -lxcb-keysyms
-CFLAGS += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include
-CFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"
+override CFLAGS += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include
+override CFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"
LDFLAGS += -L$(PREFIX)/lib
PREFIX ?= /usr/local
@@ -14,8 +14,6 @@
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
-all: CFLAGS += -Os
-all: LDFLAGS += -s
all: $(NAME)
debug: CFLAGS += -O0 -g -DDEBUG