Go to file
Fredrik Fornwall 147c3125b1 Fix rpl_malloc when cross compiling
Work around rpl_malloc being used, see
http://wiki.buici.com/xwiki/bin/view/Programing+C+and+C%2B%2B/Autoconf+and+RPL_MALLOC
for more information:

"The AC_FUNC_MALLOC macro makes sure that the malloc function when passed a zero
argument returns a valid memory block instead of a NULL pointer. This behaviour
conforms to the GNU C library.  Normally, this is a reasonable test that autoconf
makes at build-time. In the case of cross-compilation, however, autoconf cannot
execute a program to verify proper behavior.  It makes the conservative assumption
that the target library will produce non-conforming code.

Failure of this test causes autconf to replace malloc() calls with rpl_malloc()
calls. At link time, if there is no rpl_malloc() function, the linker will fail
with an error describing the missing symbol. The autoconf documentation recommends
adding this harmless code to the application to implement the function."

In Termux the rpl_malloc() usage is useless at best, and may also prevent building
some packages as well as giving runtime crashes for libgc-using packages or others
expecting to intercept malloc.

Previously some packages specified worked around this themselves, but the configure
arguments are now moved into build-package.sh.
2021-11-27 13:00:40 +01:00
.github stalebot: Ignore issues for package requests 2021-11-18 20:38:27 +05:30
disabled-packages new package: gst-libav (#8044) 2021-11-25 00:38:55 +02:00
ndk-patches ndk-patches: Add IFTODT and DTTOIF to dirent.h (#8041) 2021-11-23 10:12:17 +01:00
packages Fix rpl_malloc when cross compiling 2021-11-27 13:00:40 +01:00
sample explicitly set maintainer for each package 2020-12-20 15:16:34 +02:00
scripts meson: Bump 0.90.1 2021-11-27 09:52:19 +05:30
.gitattributes
.gitignore build-package.sh: allow to select package formats between debian and pacman 2021-09-10 19:55:28 +03:00
BACKERS.md
build-all.sh build-package.sh: allow to select package formats between debian and pacman 2021-09-10 19:55:28 +03:00
build-package.sh build-package: use PACKAGE_FORMAT debian if not specified 2021-10-22 09:27:15 +02:00
clean.sh
CODEOWNERS gn: Bump to latest 20211116 2021-11-22 07:09:18 +05:30
CONTRIBUTING.md CONTRIBUTING.md: Use the words "source is available" (#8011) 2021-11-20 18:38:45 +05:30
LICENSE.md
README.md chore: Fix Discord server ID in shields.io badge 2021-11-05 11:38:06 +05:30

Termux packages

GitHub repo size Packages last build status Docker image status Repology metadata Join the chat at https://gitter.im/termux/termux Join the Termux discord server

Powered by FossHost

This project contains scripts and patches to build packages for the Termux Android application.

Quick how-to about Termux package management is available at Package Management. It also has info on how to fix repository is under maintenance or down errors when running apt or pkg commands.

Contributing

@termux is looking for help with fixing issues, adding new packages and maintaining existing ones. It would be very helpful if you submit a pull request with bug fixes.

Read CONTRIBUTING.md and Developer's Wiki for more details.

Contacts

General mailing list: https://groups.io/g/termux

Developer mailing list: https://groups.io/g/termux-dev

General chat: https://gitter.im/termux/termux or #termux on IRC/libera.chat.

Developer chat: https://gitter.im/termux/dev.