Ticket #21138: patch-MacroCheckGccVisibility.cmake.diff

File patch-MacroCheckGccVisibility.cmake.diff, 658 bytes (added by mf2k (Frank Schima), 15 years ago)

Re-made the existing portfile patch to use p0.

  • 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: