From a33599ccc3f96453286173267a61016b08f48d52 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 5 Oct 2010 09:11:31 +0000 Subject: main/libssh: add missing patch --- main/libssh/libssh-ccache.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 main/libssh/libssh-ccache.patch diff --git a/main/libssh/libssh-ccache.patch b/main/libssh/libssh-ccache.patch new file mode 100644 index 000000000..65927431d --- /dev/null +++ b/main/libssh/libssh-ccache.patch @@ -0,0 +1,28 @@ +--- ./ConfigureChecks.cmake.orig ++++ ./ConfigureChecks.cmake +@@ -17,25 +17,6 @@ + set(BINARYDIR ${CMAKE_BINARY_DIR}) + set(SOURCEDIR ${CMAKE_SOURCE_DIR}) + +-function(COMPILER_DUMPVERSION _OUTPUT_VERSION) +- execute_process( +- COMMAND +- ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} -dumpversion +- OUTPUT_VARIABLE _COMPILER_VERSION +- ) +- +- string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2" +- _COMPILER_VERSION ${_COMPILER_VERSION}) +- +- set(${_OUTPUT_VERSION} ${_COMPILER_VERSION} PARENT_SCOPE) +-endfunction() +- +-if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW) +- compiler_dumpversion(GNUCC_VERSION) +- if (NOT GNUCC_VERSION EQUAL 34) +- check_c_compiler_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN) +- endif (NOT GNUCC_VERSION EQUAL 34) +-endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW) + + # HEADER FILES + check_include_file(argp.h HAVE_ARGP_H) -- cgit v1.2.3