xref: /OK3568_Linux_fs/buildroot/package/kompexsqlite/0002-append-to-cflags-and-cxxflags.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 3eb064ffa9b43fb5f245b8abda48a1c152a6f2d7 Mon Sep 17 00:00:00 2001
2From: me <noemail@nowhere.com>
3Date: Thu, 20 Nov 2014 14:37:34 -0700
4Subject: [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.
7
8Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
9---
10Backported from: 3eb064ffa9b43fb5f245b8abda48a1c152a6f2d7
11
12 Makefile-shared.mk | 4 ++--
13 Makefile-static.mk | 4 ++--
14 2 files changed, 4 insertions(+), 4 deletions(-)
15
16diff --git a/Makefile-shared.mk b/Makefile-shared.mk
17index b2a4920..d15ce3c 100644
18--- a/Makefile-shared.mk
19+++ b/Makefile-shared.mk
20@@ -12,10 +12,10 @@ OBJS= \
21 	${objsdir}/sqlite3.o
22
23 # C Compiler Flags
24-CFLAGS= -fPIC -MMD -MP
25+CFLAGS+= -fPIC -MMD -MP
26
27 # CC Compiler Flags
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}
30
31 # Link Libraries and Options
32 LDLIBSOPTIONS= -shared -fPIC
33diff --git a/Makefile-static.mk b/Makefile-static.mk
34index 429a4ff..0678681 100644
35--- a/Makefile-static.mk
36+++ b/Makefile-static.mk
37@@ -12,10 +12,10 @@ OBJS= \
38 	${objsdir}/sqlite3.o
39
40 # C Compiler Flags
41-CFLAGS= -MMD -MP
42+CFLAGS+= -MMD -MP
43
44 # CC Compiler Flags
45-CPPFLAGS= -I${includedir} -MMD -MP
46+CPPFLAGS+= -I${includedir} -MMD -MP
47
48 # Link Libraries and Options
49 LDLIBSOPTIONS=
50