all repos — tint2 @ 99491c8f72143fa15792dc7f37d558c2e73bf5ee

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

*fix* do not set LDFLAGS to --as-needed because this changes building behaviour which the user is not aware of
*fix* link librt only if it is found (issue 261)



git-svn-id: http://tint2.googlecode.com/svn/trunk@482 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

99491c8f72143fa15792dc7f37d558c2e73bf5ee

parent

5521275befaa644c5f2150414aacf3d610fb892e

2 files changed, 7 insertions(+), 5 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -10,6 +10,7 @@ pkg_check_modules( CAIRO REQUIRED cairo )

pkg_check_modules( GLIB2 REQUIRED glib-2.0 ) pkg_check_modules( GOBJECT2 REQUIRED gobject-2.0 ) pkg_check_modules( IMLIB2 REQUIRED imlib2 ) +find_library( RT_LIBRARY rt ) check_library_exists( "${IMLIB2_LIBRARIES}" "imlib_context_set_display" "${IMLIB2_LIBRARY_DIRS}" IMLIB_BUILD_WITH_X ) if( NOT IMLIB_BUILD_WITH_X )

@@ -61,7 +62,6 @@ add_subdirectory( src/tint2conf )

add_dependencies( tint2conf version ) endif( ENABLE_TINT2CONF ) - set( MANDIR ${CMAKE_INSTALL_PREFIX}/share/man CACHE PATH "Directory for man pages" ) set( DATADIR ${CMAKE_INSTALL_PREFIX}/share CACHE PATH "Directory for shared data" ) set( SYSCONFDIR /etc CACHE PATH "Directory for configuration files" )

@@ -84,12 +84,14 @@ ${PANGO_LIBRARIES}

${CAIRO_LIBRARIES} ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES} - ${IMLIB2_LIBRARIES} - rt ) + ${IMLIB2_LIBRARIES} ) +if( RT_LIBRARY ) + target_link_libraries( tint2 ${RT_LIBRARY} ) +endif( RT_LIBRARY ) add_dependencies(tint2 version) set_target_properties(tint2 PROPERTIES COMPILE_FLAGS -Wall) -set_target_properties(tint2 PROPERTIES LINK_FLAGS -Wl,--as-needed) +#set_target_properties(tint2 PROPERTIES LINK_FLAGS -Wl,--as-needed) install( TARGETS tint2 DESTINATION bin ) install( FILES sample/tint2rc DESTINATION ${SYSCONFDIR}/xdg/tint2 )
M src/tint2conf/CMakeLists.txtsrc/tint2conf/CMakeLists.txt

@@ -29,7 +29,7 @@ ${GTHREAD2_LIBRARIES}

${GTK2_LIBRARIES} ) set_target_properties(tint2conf PROPERTIES COMPILE_FLAGS -Wall) -set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed) +#set_target_properties(tint2conf PROPERTIES LINK_FLAGS -Wl,--as-needed) install( TARGETS tint2conf DESTINATION bin ) install( PROGRAMS tintwizard.py DESTINATION bin )