Skip to content

Commit 1132e1e

Browse files
committed
gcc-plugins: Detail c-common.h location for GCC 4.6
The c-common.h file moved in stock gcc 4.7, not gcc 4.6. However, most people building plugins with gcc 4.6 are using the Debian or Ubuntu version, which includes a patch to move the headers to the 4.7 location. In case anyone trips over this with a stock gcc 4.6, add a pointer to the patch used by Debian/Ubuntu. Signed-off-by: Kees Cook <[email protected]>
1 parent 243dd05 commit 1132e1e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/gcc-plugins/gcc-common.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
#endif
6464

6565
#if BUILDING_GCC_VERSION >= 4006
66+
/*
67+
* The c-family headers were moved into a subdirectory in GCC version
68+
* 4.7, but most plugin-building users of GCC 4.6 are using the Debian
69+
* or Ubuntu package, which has an out-of-tree patch to move this to the
70+
* same location as found in 4.7 and later:
71+
* https://sources.debian.net/src/gcc-4.6/4.6.3-14/debian/patches/pr45078.diff/
72+
*/
6673
#include "c-family/c-common.h"
6774
#else
6875
#include "c-common.h"

0 commit comments

Comments
 (0)