From 82e753d4e1928342c82cc7b82e854aa2666d1145 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 24 Aug 2017 11:28:33 +0200 Subject: [PATCH] Add libpng as a dependency for freetype for static builds Newer versions of Freetype requires libpng as well. --- cmake/StaticBuild.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake index 6db0e14b..06883c6f 100644 --- a/cmake/StaticBuild.cmake +++ b/cmake/StaticBuild.cmake @@ -91,7 +91,7 @@ if(BUILD_STATIC) if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") set(FLTK_LIBRARIES "${FLTK_LIBRARIES} ${X11_Xcursor_LIB} ${X11_Xfixes_LIB} -Wl,-Bstatic -lXft -Wl,-Bdynamic -lfontconfig -lXrender -lXext -R/usr/sfw/lib -L=/usr/sfw/lib -lfreetype -lsocket -lnsl") else() - set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -Wl,-Bstatic -lXcursor -lXfixes -lXft -lfontconfig -lexpat -lfreetype -lbz2 -lXrender -lXext -lXinerama -Wl,-Bdynamic") + set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -Wl,-Bstatic -lXcursor -lXfixes -lXft -lfontconfig -lexpat -lfreetype -lpng -lbz2 -lXrender -lXext -lXinerama -Wl,-Bdynamic") endif() set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -lX11") -- 2.39.5