]> source.dussan.org Git - tigervnc.git/commitdiff
More fixes for libX11 linkage problems
authorBrian P. Hinz <bphinz@users.sf.net>
Tue, 1 Mar 2016 03:56:27 +0000 (22:56 -0500)
committerBrian P. Hinz <bphinz@users.sf.net>
Tue, 1 Mar 2016 03:58:16 +0000 (22:58 -0500)
contrib/packages/rpm/el5/SOURCES/tigervnc14-static-build-fixes.patch

index 686f2f7e4824583977a260f98eba97aafa46ab69..dd26ea66c340c66c38b1cf30e4ad061f027f651e 100644 (file)
@@ -9,7 +9,7 @@
        endif()
  
 -      set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -lX11")
-+      set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -Wl,-Bstatic -lX11 -lxcb -lXdmcp -lXau -lICE -Wl,-Bdynamic -ldl")
++      set(FLTK_LIBRARIES "${FLTK_LIBRARIES} -Wl,-Bdynamic -lX11 -Wl,-Bstatic -lxcb -lXdmcp -lXau -lICE -Wl,-Bdynamic -ldl")
      endif()
    endif()
  
@@ -18,7 +18,7 @@
    # even it has had an ABI change once or twice.
    if(X11_FOUND AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
 -    set(X11_LIBRARIES "-Wl,-Bstatic -lXext -Wl,-Bdynamic -lX11")
-+    set(X11_LIBRARIES "-Wl,-Bstatic -lXext -lX11 -lxcb -lXdmcp -lXau -lICE -Wl,-Bdynamic -ldl -lpthread")
++    set(X11_LIBRARIES "-Wl,-Bstatic -lXext -Wl,-Bdynamic -lX11 -Wl,-Bstatic -lxcb -lXdmcp -lXau -lICE -Wl,-Bdynamic -ldl -lpthread")
      if(X11_XTest_LIB)
        set(X11_XTest_LIB "-Wl,-Bstatic -lXtst -Wl,-Bdynamic")
      endif()