https://bugs.kde.org/show_bug.cgi?id=350511

Michael <zrax0...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zrax0...@gmail.com

--- Comment #1 from Michael <zrax0...@gmail.com> ---
GCC 5.x changes the preprocessor output, which breaks gpg-error's automatic
header generation (there are other threads about this online -- it's not just
MinGW that's broken).  What I did to get around it was to modify the cmake
patch to add the -P option to GCC.

    diff --git a/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff
b/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff
    index e2d6e9a..ab389a1 100644
    --- a/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff
    +++ b/portage/win32libs/gpg-error/libgpg-error-cmake-1.12.diff
    @@ -52,10 +52,10 @@ diff -Nru -x '*~' libgpg-error-1.12.orig/CMakeLists.txt
libgpg-error-1.12/CMakeLists.txt
     +
     +# if set, TARGET_CPP is the compiler of the target platform
     +if(TARGET_CPP)
    -+    set(ERR_COMPILER ${TARGET_CPP})
    ++    set(ERR_COMPILER ${TARGET_CPP} -P)
     +    set(INCLUDE_STRING "%TARGET_INCLUDE%")
     +else(TARGET_CPP)
    -+    set(ERR_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1})
    ++    set(ERR_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} -P)
     +      set(HOST_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1})
     +    set(INCLUDE_STRING "%INCLUDE%")
     +endif(TARGET_CPP)

However, that is probably not portable to MSVC...

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Kde-windows mailing list
Kde-windows@kde.org
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to