Enable building static library on Android platform (#3488)

ps. https://github.com/bytecodealliance/wasm-micro-runtime/issues/3486
This commit is contained in:
Wenyong Huang 2024-05-31 12:11:11 +08:00 committed by GitHub
parent 23e1d51587
commit f635ab9655
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,6 +105,8 @@ set (WAMR_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
include (${WAMR_ROOT_DIR}/build-scripts/runtime_lib.cmake)
add_library(vmlib ${WAMR_RUNTIME_LIB_SOURCE})
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -pie -fPIE")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat -Wformat-security")