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:
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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue