summaryrefslogtreecommitdiff
path: root/nix/fix-Makefile.patch
blob: 37646d35c255e96757b1bb986f1dacd8127494bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Subject: Append CPPFLAGS to GLOBAL_*FLAGS, copy LDFLAGS into GLOBAL_LDFLAGS
Author: Kai Harries <kai.harries@gmail.com>

I (thk@) am not sure what this patch is needed for. I guess so that Debian
specific build options are respected?

--- a/Makefile
+++ b/Makefile
@@ -19,4 +19,8 @@ GLOBAL_CXXFLAGS += -g -Wall -include config.h
 
 -include Makefile.config
 
+GLOBAL_CFLAGS   += $(CPPFLAGS)
+GLOBAL_CXXFLAGS += $(CPPFLAGS)
+GLOBAL_LDFLAGS  += $(LDFLAGS)
+
 include mk/lib.mk