1 From 3eb064ffa9b43fb5f245b8abda48a1c152a6f2d7 Mon Sep 17 00:00:00 2001
2 From: me <noemail@nowhere.com>
3 Date: Thu, 20 Nov 2014 14:37:34 -0700
4 Subject: [PATCH] Append to CFLAGS and CXXFLAGS as setup by ./configure. This
5 can allow users to Customize the SQLite build process with compile time
6 #defines rather than altering the sources.
8 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
10 Backported from: 3eb064ffa9b43fb5f245b8abda48a1c152a6f2d7
12 Makefile-shared.mk | 4 ++--
13 Makefile-static.mk | 4 ++--
14 2 files changed, 4 insertions(+), 4 deletions(-)
16 diff --git a/Makefile-shared.mk b/Makefile-shared.mk
17 index b2a4920..d15ce3c 100644
18 --- a/Makefile-shared.mk
19 +++ b/Makefile-shared.mk
20 @@ -12,10 +12,10 @@ OBJS= \
24 -CFLAGS= -fPIC -MMD -MP
25 +CFLAGS+= -fPIC -MMD -MP
28 -CPPFLAGS= -DKOMPEX_SQLITEWRAPPER_EXPORT -DKOMPEX_SQLITEWRAPPER_DYN -fPIC -MMD -MP -I${includedir}
29 +CPPFLAGS+= -DKOMPEX_SQLITEWRAPPER_EXPORT -DKOMPEX_SQLITEWRAPPER_DYN -fPIC -MMD -MP -I${includedir}
31 # Link Libraries and Options
32 LDLIBSOPTIONS= -shared -fPIC
33 diff --git a/Makefile-static.mk b/Makefile-static.mk
34 index 429a4ff..0678681 100644
35 --- a/Makefile-static.mk
36 +++ b/Makefile-static.mk
37 @@ -12,10 +12,10 @@ OBJS= \
45 -CPPFLAGS= -I${includedir} -MMD -MP
46 +CPPFLAGS+= -I${includedir} -MMD -MP
48 # Link Libraries and Options