[kde-windows] [Bug 350511] emerge frameworks fails on build of win32libs/gpg-error
Michael
zrax0111 at gmail.com
Thu Jul 23 07:21:12 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=350511
Michael <zrax0111 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zrax0111 at gmail.com
--- Comment #1 from Michael <zrax0111 at 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.
More information about the Kde-windows
mailing list