Leonid Plyushch
0304dcc18e
build-package.sh: move golang variable configuration to termux_step_setup_toolchain.sh
Allow to use termux_setup_golang.sh for host builds.
5 years ago
Leonid Plyushch
7438159dca
reformat scripts/build/termux_step_setup_toolchain.sh
5 years ago
Leonid Plyushch
7fd3bb48c4
build-package.sh: fix copy-paste typo
clang & clang++ wrappers were copied to same file
5 years ago
Butta
4603e59e61
ndk-patches: use upstream ifaddrs.h and remove old syslog.h polyfills
5 years ago
Leonid Plyushch
aafb83e37b
build-package.sh: better support for metapackages
5 years ago
Leonid Plyushch
6267a318aa
build-package.sh: use text-based comparsion in conditionals instead of exit-code based
5 years ago
Leonid Plyushch
d111f5bf74
packages: standardize values of several control variables for build.sh
Variables
TERMUX_PKG_PLATFORM_INDEPENDENT
TERMUX_DEBUG
TERMUX_PKG_HAS_DEBUG
TERMUX_PKG_ESSENTIAL
TERMUX_SUBPKG_ESSENTIAL
TERMUX_PKG_NO_STATICSPLIT
TERMUX_PKG_BUILD_IN_SRC
TERMUX_PKG_FORCE_CMAKE
TERMUX_PKG_HOSTBUILD
should not accept arbitrary values for marking them "enabled". Instead
they should accept boolean values which makes them easier to handle and
also makes their meaning clear.
build-package.sh should make decision based on variable's value but not on
whether it is set or empty.
%ci:no-build
5 years ago
Leonid Plyushch
c8298b3e19
build-package.sh: export CC_FOR_BUILD for on-device builds
Required by some packages.
6 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