]> git.lizzy.rs Git - bspwm.git/commitdiff
Don't clobber system build flags
authorSteven Allen <steven@stebalien.com>
Wed, 19 Jun 2013 22:20:51 +0000 (18:20 -0400)
committerSteven Allen <steven@stebalien.com>
Wed, 19 Jun 2013 22:20:51 +0000 (18:20 -0400)
Currently bspwm clobbers system build flags. This prevents
stack-smashing protection and other compiler features from being
applied.

Makefile

index b8b0a77961911c0185bbeaa1bc4914e40bdfa08d..767caa4d74d0df117c70bc2118703c5e9dd6688e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,9 @@ VERSION = 0.7
 
 CC      = gcc
 LIBS    = -lm -lxcb -lxcb-icccm -lxcb-ewmh -lxcb-randr
-CFLAGS  = -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include
+CFLAGS  += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include
 CFLAGS  += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"
-LDFLAGS = -L$(PREFIX)/lib
+LDFLAGS += -L$(PREFIX)/lib
 
 PREFIX    ?= /usr/local
 BINPREFIX = $(PREFIX)/bin