My package builds fine but link fails with errors like "undefined reference to rpl_realloc / rpl_malloc", who do I blame?!
This error crops up because you didn't enable MALLOC_GLIBC_COMPAT support. Configure scripts detect whether your libc supports "GNU malloc" features by seeing whether malloc(0) returns NULL (glibc malloc(0) will return a non NULL pointer). uClibc defaults to malloc(0) returning NULL so autoconf will assume malloc from your libc sucks and procede to try and compile the malloc replacement version in the gnulib addon. However, since not many packages include gnulib, they will fail to link with rpl_realloc / rpl_malloc errors. You could force configure to assume working behavior by exporting the variables 'jm_cv_func_working_malloc' (older autoconf) and 'ac_cv_func_malloc_0_nonnull' (newer autoconf) to 'yes' before running `./configure`.