Fix datatoc_icon linker errors with ASan enabled.

Error introduced in {rBf9fcb25d521d}.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8964
This commit is contained in:
Ankit Meel 2020-09-20 15:20:31 +05:30
parent 6836a40287
commit b3c6ab5084
Notes: blender-bot 2023-05-03 10:14:48 +02:00
Referenced by issue #81100, Crash on launch: AddressSanitizer: SEGV on unknown address
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ if(NOT WITH_HEADLESS)
link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH})
add_executable(datatoc_icon ${SRC})
setup_platform_linker_flags(datatoc_icon)
target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
# PNG library uses pow() and floow(), so seems -lm is required for proper