Force static linkage for fuzz executables
This commit is contained in:
@ -1172,6 +1172,10 @@ if(UNICORN_FUZZ)
|
|||||||
target_link_libraries(fuzz_emu_${SUFFIX}
|
target_link_libraries(fuzz_emu_${SUFFIX}
|
||||||
${SAMPLES_LIB}
|
${SAMPLES_LIB}
|
||||||
)
|
)
|
||||||
|
# oss-fuzz requires statically linked executables.
|
||||||
|
target_link_options(fuzz_emu_${SUFFIX} PRIVATE
|
||||||
|
-static
|
||||||
|
)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user