mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
dev-scheme/stklos: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/881693 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
15
dev-scheme/stklos/files/stklos-1.70-configure-clang16.patch
Normal file
15
dev-scheme/stklos/files/stklos-1.70-configure-clang16.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
https://bugs.gentoo.org/881693
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -446,8 +446,9 @@ fi
|
||||
###
|
||||
### See in what direction the stack grows (code stolen from Sawfish)
|
||||
###
|
||||
-AC_RUN_IFELSE([AC_LANG_SOURCE([[ void inner (char *foo) { char bar; exit (!(foo >= &bar)); }
|
||||
- void main () { char foo; inner (&foo); } ]])],[STACK_DIRECTION="DOWN"],[STACK_DIRECTION="UP"],[echo "Stack direction is not detected when cross compiling for now"])
|
||||
+AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdlib.h>
|
||||
+ void inner (char *foo) { char bar; exit (!(foo >= &bar)); }
|
||||
+ int main (void) { char foo; inner (&foo); } ]])],[STACK_DIRECTION="DOWN"],[STACK_DIRECTION="UP"],[echo "Stack direction is not detected when cross compiling for now"])
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ EAPI="8"
|
||||
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
DESCRIPTION="fast and light Scheme implementation"
|
||||
DESCRIPTION="Fast and light Scheme implementation"
|
||||
HOMEPAGE="https://www.stklos.net/"
|
||||
SRC_URI="https://www.${PN}.net/download/${P}.tar.gz"
|
||||
|
||||
@@ -20,18 +20,24 @@ RDEPEND="dev-libs/boehm-gc[threads?]
|
||||
dev-libs/libpcre"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||
DOCS=( AUTHORS ChangeLog {HACKING,NEWS}.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-configure-clang16.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
use threads || rm -f tests/srfis/216.stk
|
||||
|
||||
default
|
||||
eautoreconf
|
||||
export LD="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export LD="$(tc-getCC)"
|
||||
|
||||
econf \
|
||||
--enable-threads=$(usex threads pthreads none) \
|
||||
--without-gmp-light \
|
||||
Reference in New Issue
Block a user