summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-27 04:00:45 +0100
committerSam James <sam@gentoo.org>2021-08-27 04:02:46 +0100
commit5b93e5168eec3dece2190f7513414020d7fe8750 (patch)
tree897ee0f58121394d87857949364fcfcff79155f4 /dev-scheme/ypsilon/files
parentdev-scheme/ypsilon: fix build with GCC 11, un-last-rite (diff)
downloadgentoo-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/ypsilon/files')
-rw-r--r--dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-clang-cflags.patch23
1 files changed, 23 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