mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
parent
be50f17f55
commit
2dbb812126
@ -34,4 +34,9 @@ LOCAL_SRC_FILES := compat/compat.cpp
|
|||||||
# Fix static variables' ctor/dtor when using LTO
|
# Fix static variables' ctor/dtor when using LTO
|
||||||
# See: https://github.com/android/ndk/issues/1461
|
# See: https://github.com/android/ndk/issues/1461
|
||||||
LOCAL_EXPORT_LDFLAGS := -static -T src/lto_fix.lds
|
LOCAL_EXPORT_LDFLAGS := -static -T src/lto_fix.lds
|
||||||
|
# For some reason, using the hacky libc.a with x86 will trigger stack protection violation
|
||||||
|
# when mixing Rust and C++ code. Disable stack protector to bypass this issue.
|
||||||
|
ifeq ($(TARGET_ARCH), x86)
|
||||||
|
LOCAL_EXPORT_CFLAGS := -fno-stack-protector
|
||||||
|
endif
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user