Skip to content

Commit

Permalink
Try different linker flag for android
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlizarraga committed Dec 19, 2024
1 parent 9354f18 commit e8df64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/onnxruntime_providers_qnn.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
string(CONCAT ONNXRUNTIME_PROVIDERS_QNN_LINK_FLAGS
"${ONNXRUNTIME_PROVIDERS_QNN_LINK_FLAGS} "
"-Xlinker -undefined=Provider_GetHost")
"-Xlinker --allow-shlib-undefined") # Allow undefined global symbols (e.g., Provider_GetHost) in shared library
endif()
set_property(TARGET onnxruntime_providers_qnn APPEND_STRING PROPERTY LINK_FLAGS "${ONNXRUNTIME_PROVIDERS_QNN_LINK_FLAGS}")
elseif(WIN32)
Expand Down

0 comments on commit e8df64f

Please sign in to comment.