--enable-kernel=2.6.0 \
--without-selinux \
--without-gd \
- --enable-bind-now
+ --enable-bind-now \
+ --enable-stackguard-randomization
endif
ifeq "$(STAGE)" "base"
--enable-kernel=2.6.0 \
--without-selinux \
--disable-werror \
- --enable-bind-now
+ --enable-bind-now \
+ --enable-stackguard-randomization
endif
# Our GCC is already passing -fPIC, and that's all we want for the libraries.
# the libraries, not the programs:
echo "build-programs=no" \
>> $(DIR_SRC)/glibc-build/configparms
+ifeq "$(STAGE)" "base"
+ echo "CC = gcc -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -nonow -nopie" \
+ >> $(DIR_SRC)/glibc-build/configparms
+ echo "CXX = g++ -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -nonow -nopie" \
+ >> $(DIR_SRC)/glibc-build/configparms
+endif
echo "LDFLAGS.so += -Wl,--warn-shared-textrel,--fatal-warnings" \
>> $(DIR_SRC)/glibc-build/configparms
cd $(DIR_SRC)/glibc-build && make PARALLELMFLAGS=$(PARALLELISMFLAGS)