Tell librep which direction the stack grows

The configure script hardcodes a list of architectures which have the
stack growing downwards.  The port being ancient, riscv64 isn't part of
that list and the configure scripts then uses C code to check stack
direction.  This check now fails using clang-16, and conflicts with
a runtime check that still detects direction correctly.

Only hppa has the stack growing upwards, so just specify stack direction
in the port's Makefile to bypass the broken configure check.

No intended functional change.
This commit is contained in:
jca 2023-11-21 12:21:51 +00:00
parent d3b7eac315
commit 63cf340b6e
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ MAKE_FLAGS= rep_LIBTOOL=${LIBTOOL}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-static \
--with-aclocaldir=${PREFIX}/share/aclocal
.if ${MACHINE_ARCH} == hppa
CONFIGURE_ARGS+= --with-stack-direction=+1
.else
CONFIGURE_ARGS+= --with-stack-direction=-1
.endif
# -pthread is needed for opening libglib-2.0:
# rep:/usr/local/lib/libglib-2.0.so.3200.0: undefined symbol 'pthread_mutex_trylock'