Commit Graph

14 Commits

Author SHA1 Message Date
Fredrik Fornwall
150f95af27 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.
2015-11-15 16:04:37 -05:00
Alex Cornejo
5e8045c9bf add Dockerfile to repository 2015-10-10 23:58:11 -07:00
Fredrik Fornwall
a7dfa85f26 Add license note 2015-10-06 23:20:37 +02:00
Fredrik Fornwall
c2d4c0a9c3 Fix typo in README.m 2015-09-16 10:31:49 -04:00
Fredrik Fornwall
26421f21a3 Strip away information from README 2015-08-09 20:38:04 +02:00
Fredrik Fornwall
1773070cde Update README.md 2015-07-28 01:25:56 +02:00
Fredrik Fornwall
6dab206295 Update README.md 2015-07-27 22:32:26 +02:00
Fredrik Fornwall
3b8f4313d9 Update README.md 2015-07-27 22:30:44 +02:00
Fredrik Fornwall
e419d02dea Update README.md 2015-07-27 22:26:03 +02:00
Fredrik Fornwall
1ddf17286f Update README.md 2015-07-27 22:25:46 +02:00
Fredrik Fornwall
9ecaa95ded Update README.md 2015-07-27 22:24:04 +02:00
Fredrik Fornwall
a9abb52055 Add notes about emulator ssh access 2015-07-04 14:48:58 +02:00
Fredrik Fornwall
798619b91c Initial push 2015-06-13 01:03:17 +02:00
Fredrik Fornwall
a730abe6e0 Initial commit 2015-06-12 23:48:33 +02:00