summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2021-12-08 06:19:34 -0800
committerSam James <sam@gentoo.org>2021-12-09 01:10:00 +0000
commit24faf6e7e362d24a6fe49c2d653007c21fb7f356 (patch)
treeb7391b1d0fa7a841faf527de7adc42dc39be5683 /dev-util/maxcso
parentmedia-libs/vulkan-layers: Drop old (diff)
downloadgentoo-24faf6e7e362d24a6fe49c2d653007c21fb7f356.tar.gz
gentoo-24faf6e7e362d24a6fe49c2d653007c21fb7f356.tar.bz2
gentoo-24faf6e7e362d24a6fe49c2d653007c21fb7f356.zip
dev-util/maxcso: Add patch to support LDFLAGS
Closes: https://bugs.gentoo.org/828416 Upstream-PR: https://github.com/unknownbrackets/maxcso/pull/58 Upstream commit: a97c03ef16bffe535a05d01d5ab856d40a70863b Signed-off-by: orbea <orbea@riseup.net> Closes: https://github.com/gentoo/gentoo/pull/23224 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/maxcso')
-rw-r--r--dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch26
-rw-r--r--dev-util/maxcso/maxcso-1.13.0.ebuild2
2 files changed, 28 insertions, 0 deletions
diff --git a/dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch b/dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch
new file mode 100644
index 000000000000..ba6b92b0627a
--- /dev/null
+++ b/dev-util/maxcso/files/maxcso-1.13.0-ldflags.patch
@@ -0,0 +1,26 @@
+From 29458b4586c8bec1a025a71eab06146fc646ccc4 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Tue, 7 Dec 2021 07:17:28 -0800
+Subject: [PATCH] build: Support LDFLAGS
+
+Fixes the gentoo issue: https://bugs.gentoo.org/828416
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 4a93ec74..1cc7fc63 100644
+--- a/Makefile
++++ b/Makefile
+@@ -32,7 +32,7 @@ ZOPFLI_C_OBJ = $(ZOPFLI_C_SRC:.c=.o)
+
+ # TODO: Perhaps detect and use system libdeflate if available.
+ maxcso: $(SRC_CXX_OBJ) $(CLI_CXX_OBJ) $(ZOPFLI_C_OBJ) 7zip/7zip.a libdeflate/libdeflate.a
+- $(CXX) -o $@ $(SRC_CXXFLAGS) $(CXXFLAGS) $^ -luv -llz4 -lz
++ $(CXX) $(LDFLAGS) -o $@ $(SRC_CXXFLAGS) $(CXXFLAGS) $^ -luv -llz4 -lz
+
+ 7zip/7zip.a:
+ $(MAKE) -C 7zip 7zip.a
+--
+2.32.0
+
diff --git a/dev-util/maxcso/maxcso-1.13.0.ebuild b/dev-util/maxcso/maxcso-1.13.0.ebuild
index a9f29908ada6..ba5155edd760 100644
--- a/dev-util/maxcso/maxcso-1.13.0.ebuild
+++ b/dev-util/maxcso/maxcso-1.13.0.ebuild
@@ -26,6 +26,8 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=("${FILESDIR}/${P}-ldflags.patch")
+
src_compile() {
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)"
}