sys-apps/moreutils: respect CC

Closes: https://bugs.gentoo.org/740340
Package-Manager: Portage-3.0.4, Repoman-2.3.23
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2020-09-04 15:10:46 +00:00
parent 8f22fc3f82
commit 4dff1d851b
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/is_utf8/Makefile b/is_utf8/Makefile
index 13b1021..f0a111e 100644
--- a/is_utf8/Makefile
+++ b/is_utf8/Makefile
@@ -37,7 +37,7 @@ LINKERNAME = lib$(NAME).so
SONAME = $(LINKERNAME).$(VERSION)
REALNAME = $(SONAME).$(MINOR).$(RELEASE)
-CC = gcc
+CC ?= gcc
CFLAGS ?= -O3 -Wextra -Wall -ansi -Wstrict-prototypes
$(NAME): $(OBJ)

View File

@@ -31,6 +31,10 @@ DEPEND="
app-text/docbook-xml-dtd:4.4
)"
PATCHES=(
"${FILESDIR}/${PN}-0.64-respect-env.patch"
)
src_prepare() {
# don't build manpages
if ! use doc ; then