Skip to content


Use obscure make syntax to make Debian packaging easier #14

merged 1 commit into from

2 participants


Debian wants to be able to inject a standard set of buildflags, some based on policy and some based on user input (for instance, -O2, unless DEB_BUILD_OPTIONS is set to noopt)

This patch lets me run "make CFLAGS=foo" and have that foo append, rather than override, the CFLAGS in your Makefile

@ebroder ebroder merged commit aa9fba3 into nelhage:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
2 Makefile
@@ -1,4 +1,4 @@
-CFLAGS=-Wall -Werror -D_GNU_SOURCE -g
+override CFLAGS+=-Wall -Werror -D_GNU_SOURCE -g
OBJS=reptyr.o ptrace.o attach.o
Something went wrong with that request. Please try again.