board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / kompexsqlite / 0002-append-to-cflags-and-cxxflags.patch
blobabd0dc0fddd81d572814545d2ea70bc2dbe68643
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>
9 ---
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= \
21 ${objsdir}/sqlite3.o
23 # C Compiler Flags
24 -CFLAGS= -fPIC -MMD -MP
25 +CFLAGS+= -fPIC -MMD -MP
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}
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= \
38 ${objsdir}/sqlite3.o
40 # C Compiler Flags
41 -CFLAGS= -MMD -MP
42 +CFLAGS+= -MMD -MP
44 # CC Compiler Flags
45 -CPPFLAGS= -I${includedir} -MMD -MP
46 +CPPFLAGS+= -I${includedir} -MMD -MP
48 # Link Libraries and Options
49 LDLIBSOPTIONS=