Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- rm -rf ./dropbear/
- cp -r ./dropbear-bup/ ./dropbear/
- cd ./dropbear/
- make clean
- make distclean
- ### NOTE: if it allows, insert "-fvisibility=hidden" inbetween the "-fno-plt" and "-fno-exceptions" to CFLAGS
- export CC="/home/artix/my-floppy-distro/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc"
- ./configure --host=x86_64-linux-musl --prefix=/usr --enable-static --disable-zlib --disable-syslog --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --disable-shadow --enable-bundled-libtom CC='/home/artix/my-floppy-distro/x86_64-linux-musl-cross/bin/x86_64-linux-musl-gcc' \
- CFLAGS='-static -Os -s -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-stack-protector -fomit-frame-pointer -fmerge-all-constants -fno-ident -fno-math-errno -fno-unroll-loops -ffast-math -fno-plt SSSSS -fvisibility=hidden SSSSS -fno-exceptions -march=x86-64 -mtune=generic -fno-align-functions -fno-align-jumps -fno-align-loops -fno-align-labels -I/home/artix/my-floppy-distro/x86_64-linux-musl-cross/include --sysroot=/home/artix/my-floppy-distro/x86_64-linux-musl-cross' \
- LDFLAGS='-L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/lib -L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/x86_64-linux-musl/lib -static -s -Wl,--gc-sections -Wl,--strip-all -Wl,--build-id=none -Wl,-z,norelro -Wl,--hash-style=sysv -Wl,--no-eh-frame-hdr -Wl,-z,noseparate-code -Wl,--no-undefined-version -Wl,--as-needed -Wl,--sort-common -Wl,--sort-section=alignment -Wl,--compress-debug-sections=none -Wl,--warn-common -Wl,--discard-all -Wl,--discard-locals -Wl,--no-ld-generated-unwind-info -Wl,--orphan-handling=place -no-pie -L/home/artix/my-floppy-distro/x86_64-linux-musl-cross/lib --sysroot=/home/artix/my-floppy-distro/x86_64-linux-musl-cross'
- make dbclient scp
- ls -al ./dbclient
- ls -al ./scp
- cd ./../
- #
- # make ARCH=x86_64 clean && make ARCH=x86_64 distclean && cp ~/shitnew ./.config && make ARCH=x86_64 -j4 KCFLAGS="-Os -s" bzImage && ls -al ./arch/x86/boot/bzImage
- #
Advertisement
Add Comment
Please, Sign In to add comment