apr's configure script uses lots of AC_TRY_RUNs and when cross-compiling
needs a leg-up. This commit adds more configure variables (and removes
one, too).
Notable changes:
- apr_cv_use_lfs64=yes is removed (again) after having a discussion
about it with the musl developers. The conclusion was that
_LARGEFILE64_SOURCE is a horrible thing that we don't want and should
avoid (hence the removal of the variable, because defining
_LARGEFILE64_SOURCE is all it does).
- ap_cv_atomic_builtins is set to "yes" for 64-bit platforms. If
anybody is interested in enabling this for other targets feel free to
send a patch after testing it.
- configure doesn't add -lpthread to LIBS when cross-compiling. This is
not a problem for musl but might be for other libcs. This commit adds
to related variable.
- configure caches are added (via patches) for strerror and /dev/zero
mmap tests. The former fixes a warning on musl (where strerror
returns int instead of a pointer) and the latter is required for
pthread pshared mutex apr_lock implementation and cannot be detected
during cross-compile either.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- removes 001-autoconf-compat.patch:
Looks like this was meant as a workaround for a libtool issue. But it
doesn't appear to be needed anymore.
- removes 101-fix_apr_time_now.patch:
Mentioned in https://dev.openwrt.org/ticket/9287, meant as a fix, but
issue was fixed differently in the end (by activating LFS).
- removes 201-upgrade-and-fix-1.5.1.patch:
This is a cross-compile fix. This patch gets replaced by
001-cross-compile.patch from buildroot project. The latter was sent
upstream by buildroot and is in line with the patch used by OpenWrt
for the apache package.
- adds 002-sys-param-h.patch:
Fix PATH_MAX detection by including sys/param.h if available. Also
from buildroot.
Additionally configure variables found in buildroot package are added.
These also enable LFS support. This was previously done (in OpenWrt) by
defining _LARGEFILE64_SOURCE in TARGET_CPPFLAGS. But the configure
variable is cleaner (and easier to follow).
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
- removes '$(FPIC)' and '--without-pic', there is no good reason for
them being used (also @minfrin mentioned memory footprint implications
when '--without-pic' is used)
- stops removing aclocal.m4 and build/ltmain.sh (reason of removal of
these files is not apparent anymore)
- adds PKG_BUILD_PARALLEL:=1
Resolves#10884
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Users have reported errors with Apache. Enable DSO to try to fix.
Most of these vars default to no since we're cross-compiling. Change them
to on since all the libc's that OpenWrt supports supports these. epoll for
example should have better stability.
Changed PKG_LICENSE to SPDX.
Slight cleanups.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
The configure script assumes that several sizes are 64-bit when cross
compiling. Backport a patch from the Yotco project to fix this.
Fixes apache compilation issue as Apache passes -Werror.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git
(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>