summaryrefslogtreecommitdiffstats
path: root/cmake/StaticBuild.cmake
diff options
context:
space:
mode:
authorPeter Åstrand (astrand) <astrand@cendio.se>2015-02-10 12:21:05 +0100
committerPeter Åstrand (astrand) <astrand@cendio.se>2015-02-10 12:21:05 +0100
commitc4bc5a8f0eeacbebb50a2ef79c7b03b64586475a (patch)
treef9df0cfc299272a46245b54e176625af18a5e19e /cmake/StaticBuild.cmake
parent11167e1f08b15381d5e7834baf7f0a6811af1985 (diff)
downloadtigervnc-c4bc5a8f0eeacbebb50a2ef79c7b03b64586475a.tar.gz
tigervnc-c4bc5a8f0eeacbebb50a2ef79c7b03b64586475a.zip
Build fixes for modern versions of binutils.
Need to explicitly list DSOs.
Diffstat (limited to 'cmake/StaticBuild.cmake')
-rw-r--r--cmake/StaticBuild.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake
index 49706bd3..1ac4f6e3 100644
--- a/cmake/StaticBuild.cmake
+++ b/cmake/StaticBuild.cmake
@@ -75,12 +75,12 @@ if(BUILD_STATIC)
elseif(APPLE)
set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -framework Cocoa")
else()
- set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -lm")
+ set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -lm -ldl")
endif()
if(X11_FOUND AND NOT APPLE)
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
- set(FLTK_LIBRARIES "${FLTK_LIBRARIES} ${X11_Xcursor_LIB} ${X11_Xfixes_LIB} -Wl,-Bstatic -lXft -Wl,-Bdynamic -lfontconfig -lXext -R/usr/sfw/lib")
+ 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")
endif()