forked from kisonecat/fbpad-eink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
patch_fbink
36 lines (35 loc) · 1.21 KB
/
patch_fbink
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/Makefile b/Makefile
index 52f34f0..939b2c8 100644
--- a/Makefile
+++ b/Makefile
@@ -6,31 +6,6 @@
# https://github.com/koreader/koxtoolchain
# NOTE: We want the "bare" variant of the TC env, to make sure we vendor the right stuff...
# i.e., source ~SVN/Configs/trunk/Kindle/Misc/x-compile.sh kobo env bare
-ifdef CROSS_TC
- # NOTE: If we have a CROSS_TC toolchain w/ CC set to Clang,
- # assume we know what we're doing, and that everything is setup the right way already (i.e., via x-compile.sh tc env clang)...
- ifneq "$(CC)" "clang"
- CC:=$(CROSS_TC)-gcc
- CXX:=$(CROSS_TC)-g++
- STRIP:=$(CROSS_TC)-strip
- # NOTE: This relies on GCC plugins!
- # Enforce AR & RANLIB to point to their real binary and not the GCC wrappers if your TC doesn't support that!
- AR:=$(CROSS_TC)-gcc-ar
- RANLIB:=$(CROSS_TC)-gcc-ranlib
- endif
-else ifdef CROSS_COMPILE
- CC:=$(CROSS_COMPILE)cc
- CXX:=$(CROSS_COMPILE)cxx
- STRIP:=$(CROSS_COMPILE)strip
- AR:=$(CROSS_COMPILE)gcc-ar
- RANLIB:=$(CROSS_COMPILE)gcc-ranlib
-else
- CC?=gcc
- CXX?=g++
- STRIP?=strip
- AR?=gcc-ar
- RANLIB?=gcc-ranlib
-endif
DEBUG_CFLAGS:=-Og -fno-omit-frame-pointer -pipe -g
# Fallback CFLAGS, we honor the env first and foremost!