mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[build/android] Prevent code relocations in MicroPython
This commit is contained in:
@@ -34,6 +34,10 @@ CXX = $(NDK_TOOLCHAIN_PATH)/$(NDK_TARGET)$(NDK_VERSION)-clang++
|
||||
LD = $(NDK_TOOLCHAIN_PATH)/$(NDK_TARGET)$(NDK_VERSION)-clang++
|
||||
|
||||
SFLAGS += -fPIC
|
||||
# If MICROPY_NLR_SETJMP is 0, the MicroPython NLR is done by
|
||||
# python/src/py/nlrthumb.c and creates code containing relocations, which is not
|
||||
# accepted by Android.
|
||||
SFLAGS += -DMICROPY_NLR_SETJMP=1
|
||||
|
||||
LDFLAGS += -shared
|
||||
LDFLAGS += -static-libstdc++
|
||||
|
||||
Reference in New Issue
Block a user