Force static linkage for fuzz executables

This commit is contained in:
lazymio 2021-10-06 15:36:12 +02:00
parent df5df118db
commit 8540b64211
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 4 additions and 0 deletions

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()