mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-03 11:58:07 -07:00
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>
27 lines
797 B
Diff
27 lines
797 B
Diff
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
|
|
|