mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-05 14:06:37 +08:00
Disable lto and use c++_shared
This commit is contained in:
parent
dbe84c229b
commit
9d53832929
@ -65,8 +65,3 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation("dev.rikka.ndk.thirdparty:cxx:1.2.0")
|
|
||||||
}
|
|
||||||
|
@ -6,10 +6,9 @@ LOCAL_MODULE := lsplant
|
|||||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
||||||
LOCAL_SRC_FILES := lsplant.cc
|
LOCAL_SRC_FILES := lsplant.cc
|
||||||
LOCAL_EXPORT_C_INCLUDES:= $(LOCAL_PATH)/include
|
LOCAL_EXPORT_C_INCLUDES:= $(LOCAL_PATH)/include
|
||||||
LOCAL_STATIC_LIBRARIES := cxx dex_builder
|
LOCAL_STATIC_LIBRARIES := dex_builder
|
||||||
LOCAL_LDLIBS := -llog
|
LOCAL_EXPORT_LDLIBS := -llog
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
$(call import-module,prefab/cxx)
|
|
||||||
include jni/external/dex_builder/Android.mk
|
include jni/external/dex_builder/Android.mk
|
||||||
|
|
||||||
|
@ -3,12 +3,12 @@ APP_CFLAGS += -fno-stack-protector -fomit-frame-pointer
|
|||||||
APP_CFLAGS += -Wno-builtin-macro-redefined -D__FILE__=__FILE_NAME__ -Wno-gnu-string-literal-operator-template
|
APP_CFLAGS += -Wno-builtin-macro-redefined -D__FILE__=__FILE_NAME__ -Wno-gnu-string-literal-operator-template
|
||||||
APP_CPPFLAGS := -std=c++20
|
APP_CPPFLAGS := -std=c++20
|
||||||
APP_CONLYFLAGS := -std=c18
|
APP_CONLYFLAGS := -std=c18
|
||||||
APP_STL := none
|
APP_STL := c++_shared
|
||||||
|
|
||||||
ifneq ($(NDK_DEBUG),1)
|
ifneq ($(NDK_DEBUG),1)
|
||||||
APP_CFLAGS += -Oz -flto
|
APP_CFLAGS += -Oz
|
||||||
APP_CFLAGS += -Wno-unused -Wno-unused-parameter -Werror
|
APP_CFLAGS += -Wno-unused -Wno-unused-parameter -Werror
|
||||||
APP_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
APP_CFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
|
||||||
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
|
APP_CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables
|
||||||
APP_LDFLAGS += -Wl,--exclude-libs,ALL -flto -Wl,--gc-sections -Wl,--strip-all
|
APP_LDFLAGS += -Wl,--exclude-libs,ALL -Wl,--gc-sections -Wl,--strip-all
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user