Force static linkage for fuzz executables

This commit is contained in:
lazymio
2021-10-06 15:36:12 +02:00
parent df5df118db
commit 8540b64211

View File

@ -1172,6 +1172,10 @@ if(UNICORN_FUZZ)
target_link_libraries(fuzz_emu_${SUFFIX}
${SAMPLES_LIB}
)
# oss-fuzz requires statically linked executables.
target_link_options(fuzz_emu_${SUFFIX} PRIVATE
-static
)
endforeach()
endif()