forked from zhovner/OneFileLinux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_buildroot.sh
More file actions
executable file
·10 lines (8 loc) · 1.07 KB
/
Copy pathbuild_buildroot.sh
File metadata and controls
executable file
·10 lines (8 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
#!/bin/bash
if [ ! -f buildroot/.config ]; then
echo ".config found, using it"
cp $PWD/cfg/buildroot_x86_64_glibc-systemd buildroot/.config
fi
cd buildroot/; make menuconfig;
make -j6 HOST_CFLAGS="$HOST_CFLAGS -march=native -mcpu=native -mtune=native -D_GLIBCXX_ASSERTIONS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -fstack-clash-protection -param stack-clash-protection-guard-size= 20 -fcf-protection=full -Wl,-z,nodlopen-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -fPIC -shared -fno-delete-null-pointer-checks -ftrivial-auto-var-init=zero -fexceptions -fhardened -Whardened -Wl,--as-needed -Wl,--no-copy-dt-needed-entries -fsanitize=address -fsanitize=thread -fsanitize=leak -fsanitize=undefined -fsanitize=address -fsanitize=thread --enable-default-pie --enable-default-ssp --enable-host-pie --enable-host-bind-now" \
HOST_LDLAGS="$HOST_LDLAGS --disable-default-execstack --enable-warn-execstack --enable-error-execstack --enable-warn-rwx-segments --enable-error-rwx-segments --enable-relro --enable-textrel-check=error "