diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 23bb01ba6..2a1becad0 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -95,6 +95,8 @@ cd build --with-sysroot=$LFS \ --with-newlib \ --without-headers \ + --enable-default-pie \ + --enable-default-ssp \ --disable-nls \ --disable-shared \ --disable-multilib \ diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 17c164362..be33348f1 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -98,6 +98,8 @@ cd build LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc \ --prefix=/usr \ --with-build-sysroot=$LFS \ + --enable-default-pie \ + --enable-default-ssp \ --disable-nls \ --disable-multilib \ --disable-decimal-float \ diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 430b586c1..1df7aabc7 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -81,6 +81,8 @@ cd build ../configure --prefix=/usr \ LD=ld \ --enable-languages=c,c++ \ + --enable-default-pie \ + --enable-default-ssp \ --disable-multilib \ --disable-bootstrap \ --with-system-zlib