Leonid Plyushch
c8298b3e19
build-package.sh: export CC_FOR_BUILD for on-device builds
Required by some packages.
5 years ago
Leonid Plyushch
0d2f6e446f
enable on-device builds
Partial compatibility for on-device builds.
There is no guarantee that it will be possible to build all available
packages and built packages will have same reliability that cross-compiled
but should solve "self-hosting" problems as much as possible.
6 years ago
Leonid Plyushch
ffe57097d1
build-package.sh: avoid linking with extra/unneeded libraries
6 years ago
Leonid Plyushch
e63524cbdc
build-package.sh: basic hardening via CFLAGS/LDFLAGS
See https://github.com/termux/termux-packages/issues/4107 .
In short:
* Stack protector will be used by default.
* GOT/PLT ELF sections will be read-only.
6 years ago
Leonid Plyushch
21b96d3b41
no more develsplit + provide static libraries as separate package
%ci:no-build
6 years ago
Fredrik Fornwall
32de55cece
Always use -Oz optimization level
6 years ago
Tom Yan
46fa2d15c6
build-package.sh: export OBJCOPY
6 years ago
its-pointless
f6660abd1e
avoid using system clang instead of ndk one
6 years ago
its-pointless
8d09dc96fd
fix arm-cpp properly...
6 years ago
its-pointless
f2687cdf6d
fix arm cpp
6 years ago
its-pointless
d0f4522c55
ndk-20 update
6 years ago
Tom Yan
7e60494c16
build-package: fix unwind symbols hiding
Apparently because libgcc.a is now a linker script, `--exclude-libs libgcc.a` doesn't seem to do a thing. Also hiding symbols from libunwind.a.
6 years ago
Leonid Plyushch
4122f68ebe
new package: libiconv
6 years ago
Tom Yan
32f46ac7e0
zlib: add package
6 years ago
Leonid Plyushch
217c078304
termux_step_setup_toolchain.sh: simplify unneeded headers removal
6 years ago
Leonid Plyushch
e09bebd9cb
termux_step_setup_toolchain.sh: move 'rm usr/include/sys/capability.h' to correct place
6 years ago
Fredrik Fornwall
44118b6e67
Remove sys/capability.h from the NDK sysroot
The sys/capability.h file will be provided by libcap-dev.
6 years ago
Tom Yan
e5edd4f586
Simplify libc++ setup
As clang++ in the NDK defaults to libc++ since r17, we no longer
need to fake a libstdc++.so at build time (and omit it from the
libc++ package we ship).
6 years ago
Leonid Plyushch
02e60c373c
build-package.sh: create dummy libutil.so which links to libc
Replace libutil.so with linker script so we don't have to patch
each program that tries to link with libutil.so.
6 years ago
Leonid Plyushch
a48d94ce2b
build-package.sh: enable use of DT_RUNPATH, set minimal API level to 24
6 years ago
Henrik Grimler
e6097e6cf6
build-package: mv termux_step_setup_toolchain to scripts/build/
6 years ago