| 5 | |
| 6 | For use on an HLFS system this package needs some extra effort. |
| 7 | First get a patch from gentoo hardened: http://ftp.riken.go.jp/Linux/gentoo/dev-libs/gmp/files/gmp-4.1.4-noexecstack.patch |
| 8 | |
| 9 | {{{ |
| 10 | patch -Np1 -i ../gmp-4.1.4-noexecstack.patch |
| 11 | }}} |
| 12 | |
| 13 | Compile the package with: |
| 14 | |
| 15 | {{{ |
| 16 | env CC="gcc -fno-stack-protector -fno-pic -fno-pie -nopie" \ |
| 17 | ./configure --prefix=/usr --enable-static=no --enable-shared=yes -with-pic && |
| 18 | make && |
| 19 | make check |
| 20 | }}} |
| 21 | |
| 22 | If the test wont give you any messages containing "cannot enable executable stack as shared object |
| 23 | requires" you can continue with a make install according the BLFS book. |