User:Immolo/Fortify Headers

From Gentoo Wiki
Jump to:navigation Jump to:search


Use the live ebuild version of sys-libs/fortify-headers

FILE /etc/portage/package.accept_keywords/fortifyfortify-headers-9999
sys-libs/fortify-headers **

Then, emerge the package:

root #emerge --ask sys-libs/fortify-headers


To use fortify-headers with Gentoo then a patch from Alpine Linux is required and a small edit to the Gentoo sys-devel/gcc ebuild.

root #mkdir -p /etc/portage/patches/sys-devel/gcc
root #cd /etc/portage/patches/sys-devel/gcc

This will allow you to emerge sys-devel/gcc:

root #emerge --ask sys-devel/gcc
Make sure you check that the system is using the correct version of GCC.

Rebuild @world

Finally the system needs to be rebuilt against the new headers:

root #emerge -empty-tree --exclude sys-devel/gcc @world

Reporting Bugs

Please remember to report bugs for all issues to and if needed upstream to