diff options
author | Sam James <sam@gentoo.org> | 2021-08-27 04:00:45 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-08-27 04:02:46 +0100 |
commit | 5b93e5168eec3dece2190f7513414020d7fe8750 (patch) | |
tree | 897ee0f58121394d87857949364fcfcff79155f4 /dev-scheme | |
parent | dev-scheme/ypsilon: fix build with GCC 11, un-last-rite (diff) | |
download | gentoo-5b93e5168eec3dece2190f7513414020d7fe8750.tar.gz gentoo-5b93e5168eec3dece2190f7513414020d7fe8750.tar.bz2 gentoo-5b93e5168eec3dece2190f7513414020d7fe8750.zip |
dev-scheme/ypsilon: fix build with Clang
Closes: https://bugs.gentoo.org/730692
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r-- | dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-clang-cflags.patch | 23 | ||||
-rw-r--r-- | dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild | 1 |
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-clang-cflags.patch b/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-clang-cflags.patch new file mode 100644 index 000000000000..8d2ce6ea796a --- /dev/null +++ b/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-clang-cflags.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/730692 + +From 8d5318ea079f53149ab87974a4ad9ed9c5c7fcf5 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 27 Aug 2021 03:58:34 +0100 +Subject: [PATCH] Drop flags Clang doesn't support + +In particular, -fno-crossjumping but the rest seem rather unnecessary. +--- a/Makefile ++++ b/Makefile +@@ -130,12 +130,10 @@ $(PROG): $(OBJS) + + vm1.s: vm1.cpp + $(CXX) $(CXXFLAGS) $(CPPFLAGS) \ +- -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps \ + -fverbose-asm -S src/vm1.cpp + + vm1.o: vm1.cpp + $(CXX) $(CXXFLAGS) $(CPPFLAGS) \ +- -fno-reorder-blocks -fno-crossjumping -fno-align-labels -fno-align-loops -fno-align-jumps \ + -c src/vm1.cpp + + install: all stdlib sitelib diff --git a/dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild b/dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild index 399bd7866afb..83a06545d057 100644 --- a/dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild +++ b/dev-scheme/ypsilon/ypsilon-0.9.6_p3-r1.ebuild @@ -21,6 +21,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}"/${P}-asneeded.patch + "${FILESDIR}"/${P}-clang-cflags.patch ) src_compile() { |