mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-13 22:03:09 +00:00
builder-linux armv7 thumb
This commit is contained in:
@@ -91,8 +91,8 @@ ask_target
|
|||||||
|
|
||||||
CFLAGS_BASE="$CFLAGS"
|
CFLAGS_BASE="$CFLAGS"
|
||||||
for t in $TGT; do
|
for t in $TGT; do
|
||||||
buildenv $t
|
|
||||||
CFLAGS="$CFLAGS_BASE $CFLAGS_PIC"
|
CFLAGS="$CFLAGS_BASE $CFLAGS_PIC"
|
||||||
|
buildenv $t
|
||||||
pushd "$DEPS"
|
pushd "$DEPS"
|
||||||
install_h_files
|
install_h_files
|
||||||
build_netlink
|
build_netlink
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ ask_target
|
|||||||
|
|
||||||
[ -d "$ZBIN" ] || mkdir -p "$ZBIN"
|
[ -d "$ZBIN" ] || mkdir -p "$ZBIN"
|
||||||
|
|
||||||
|
CFLAGS_BASE="$CFLAGS"
|
||||||
for t in $TGT; do
|
for t in $TGT; do
|
||||||
|
CFLAGS="$CFLAGS_BASE $MINSIZE $CFLAGS_PIC"
|
||||||
buildenv $t
|
buildenv $t
|
||||||
|
|
||||||
translate_target $t || {
|
translate_target $t || {
|
||||||
@@ -48,7 +50,7 @@ for t in $TGT; do
|
|||||||
|
|
||||||
make clean
|
make clean
|
||||||
OPTIMIZE=$OPTIMIZE \
|
OPTIMIZE=$OPTIMIZE \
|
||||||
CFLAGS="-static-libgcc -I$STAGING_DIR/include $MINSIZE $CFLAGS_PIC $CFLAGS" \
|
CFLAGS="-static-libgcc -I$STAGING_DIR/include $CFLAGS" \
|
||||||
LDFLAGS="-L$STAGING_DIR/lib $LDMINSIZE $LDFLAGS_PIE $LDFLAGS" \
|
LDFLAGS="-L$STAGING_DIR/lib $LDMINSIZE $LDFLAGS_PIE $LDFLAGS" \
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ ask_target
|
|||||||
|
|
||||||
[ -d "$ZBIN" ] || mkdir -p "$ZBIN"
|
[ -d "$ZBIN" ] || mkdir -p "$ZBIN"
|
||||||
|
|
||||||
|
CFLAGS_BASE="$CFLAGS"
|
||||||
for t in $TGT; do
|
for t in $TGT; do
|
||||||
|
CFLAGS="$CFLAGS_BASE"
|
||||||
buildenv $t
|
buildenv $t
|
||||||
|
|
||||||
translate_target $t || {
|
translate_target $t || {
|
||||||
|
|||||||
@@ -98,12 +98,17 @@ buildenv()
|
|||||||
LDFLAGS_PIE=-static
|
LDFLAGS_PIE=-static
|
||||||
# not all archs support -static-pie. if does not support - it produces dynamic executable
|
# not all archs support -static-pie. if does not support - it produces dynamic executable
|
||||||
# "-static -static-pie" causes segfaults
|
# "-static -static-pie" causes segfaults
|
||||||
[ "$PIE" = 1 ] && case $1 in
|
case $1 in
|
||||||
arm-*|mips*)
|
arm-*)
|
||||||
|
CFLAGS="-march=armv7-a -mthumb $CFLAGS"
|
||||||
|
;;
|
||||||
|
mips*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
CFLAGS_PIC=-fPIC
|
[ "$PIE" = 1 ] && {
|
||||||
LDFLAGS_PIE="-static-pie"
|
CFLAGS_PIC=-fPIC
|
||||||
|
LDFLAGS_PIE="-static-pie"
|
||||||
|
}
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user