Ticket #15344: strigi-fix-check-gcc-visibility-macro-ccache.patch

File strigi-fix-check-gcc-visibility-macro-ccache.patch, 797 bytes (added by clubjuggler@…, 17 years ago)

Patch to allow compiling when ccache turned on.

  • cmake/MacroCheckGccVisibility.cmake

    diff -uNr strigi-0.5.7.orig/cmake/MacroCheckGccVisibility.cmake strigi-0.5.7/cmake/MacroCheckGccVisibility.cmake
    old new  
    1313   check_cxx_compiler_flag(-fvisibility=hidden ${GccVisibility})
    1414
    1515   # get the gcc version
    16    exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)
     16   exec_program(${CMAKE_C_COMPILER} ARGS ${CMAKE_C_COMPILER_ARG1} --version OUTPUT_VARIABLE _gcc_version_info)
    1717
    1818   string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]" _gcc_version "${_gcc_version_info}")
    1919   # gcc on mac just reports: "gcc (GCC) 3.3 20030304 ..." without the patch level, handle this here: