--- CMakeLists.txt.orig	2018-03-16 17:25:33 UTC
+++ CMakeLists.txt
@@ -91,7 +91,6 @@ function(add_linker_flags)
 	endforeach()
 endfunction()
 
-CHECK_CXX_COMPILER_FLAG("-flto" USE_GCC_STYLE_LTCG)
 if(USE_GCC_STYLE_LTCG)
 	set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -flto")
 	set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -flto")
@@ -337,8 +336,6 @@ if(READLINE_FOUND)
 endif()
 SET(HAVE_LIBREADLINE ${READLINE_FOUND} CACHE INTERNAL "libreadline available")
 
-find_package(GTK3 COMPONENTS gthread gio gobject glib OPTIONAL_COMPONENTS gtksourceview)
-
 # Select an audio library
 find_package("Audio")
 if(Audio_FOUND)
@@ -356,8 +353,6 @@ set(HAVE_SDL ${SDL2_FOUND})
 include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})
 
 # Qt5 for editor
-find_path(Qt5DIR qt.pro PATHS ${CMAKE_ADDITIONAL_DEPS_PATH}/qt-5.5.0)
-find_package(Qt5Widgets 5.4 PATHS ${Qt5DIR}/qtbase/lib/cmake/Qt5Widgets)
 if(Qt5Widgets_FOUND)
 	SET(WITH_QT_EDITOR ${Qt5Widgets_FOUND} "Qt editor dialogues available")
 	set(CMAKE_AUTOMOC ON)
