]>
Commit | Line | Data |
---|---|---|
7feffaab ER |
1 | gcc6 hack |
2 | ||
3 | http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2017-June/025365.html | |
4 | https://patchwork.openembedded.org/patch/122245/ | |
5 | ||
6 | --- | |
7 | ||
8 | gcc6 has fixed a long standing c++ include issue where <cheader> | |
9 | was different from <header.h> inclusion via | |
10 | ||
11 | https://gcc.gnu.org/ml/libstdc++/2016-01/msg00025.html | |
12 | ||
13 | and its also descibed in https://gcc.gnu.org/gcc-6/porting_to.html | |
14 | rpmio component uses some .cpp and .cc fies which need to use | |
15 | C stdlib.h from C library and not the C++ libstdc++ header | |
16 | therefore we pass _GLIBCXX_INCLUDE_NEXT_C_HEADERS so that it | |
17 | keeps the old behavior | |
18 | --- rpm-5.4.15/rpmio/rpmjni.cc~ 2014-08-09 01:08:50.000000000 +0300 | |
19 | +++ rpm-5.4.15/rpmio/rpmjni.cc 2017-06-25 16:42:23.383464974 +0300 | |
20 | @@ -1,3 +1,4 @@ | |
21 | +#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS | |
22 | #include "system.h" | |
23 | #include <rpmlog.h> | |
24 | #include <rpmmacro.h> | |
25 | --- rpm-5.4.15/rpmqv.cc~ 2017-06-25 17:37:53.000000000 +0300 | |
26 | +++ rpm-5.4.15/rpmqv.cc 2017-06-25 18:01:37.158939691 +0300 | |
27 | @@ -1,3 +1,4 @@ | |
28 | +#define _GLIBCXX_INCLUDE_NEXT_C_HEADERS | |
29 | #include "system.h" | |
30 | extern const char *__progname; | |
31 |