Fix compilation error on recent Debian desktop

Something funny happened here, there were missing symbols from png
library to math functions.
This commit is contained in:
2016-12-05 11:34:49 +01:00
parent b18f83bcf4
commit 95b224dab2

View File

@@ -62,4 +62,9 @@ if(NOT WITH_HEADLESS)
add_executable(datatoc_icon ${SRC})
target_link_libraries(datatoc_icon ${PNG_LIBRARIES} ${ZLIB_LIBRARIES})
# PNG library uses pow() and floow(), so seems -lm is required for proper
# workign binary.
if(UNIX AND NOT APPLE)
target_link_libraries(datatoc_icon m)
endif()
endif()