net-dialup/atinout: patched Makefile

The original one does not respect CFLAGS/LDFLAGS so with the
help of Sam we've patched him to make it respecting *FLAGS

Closes: https://bugs.gentoo.org/798909
Closes: https://bugs.gentoo.org/798903
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco@scardovi.com>
This commit is contained in:
Marco Scardovi
2021-06-27 19:23:03 +02:00
parent b7524220f5
commit e14b57d467
2 changed files with 43 additions and 1 deletions

View File

@@ -16,8 +16,10 @@ KEYWORDS="~amd64 ~arm64"
PATCHES=(
"${FILESDIR}"/0001-make-gcc-happy-by-adding-fallthrough-comment.patch
"${FILESDIR}"/0002-do-not-rely-on-CR-in-modem-output.patch
"${FILESDIR}"/0003-patch-makefile.patch
)
src_compile() {
CC="$(tc-getCC)" emake LDFLAGS="${LDFLAGS}"
tc-export CC
emake
}

View File

@@ -0,0 +1,40 @@
From 404fb66abd5db4ef4b824ec67c56887773c99962 Mon Sep 17 00:00:00 2001
From: Marco Scardovi <marco@scardovi.com>
Date: Sun, 27 Jun 2021 18:21:15 +0200
Subject: [PATCH] patch makefile
Signed-off-by: Marco Scardovi <marco@scardovi.com>
---
Makefile | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 1daa431..bb27d0b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,15 @@
VERSION = 0.9.1
-PREFIX = /usr
+PREFIX ?= /usr
-CC = gcc
-CFLAGS = -W -Wall -Wextra -Werror \
- -DVERSION=\"$(VERSION)\" \
- -g
-LDFLAGS =
+CC ?= gcc
+CFLAGS ?= -W -Wall -Wextra -Werror -g
+LDFLAGS ?=
all: atinout
atinout: atinout.c
- $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $^
+ $(CC) -o $@ $(CFLAGS) $(CPPFLAGS) -DVERSION=\"$(VERSION)\" $(LDFLAGS) $^
clean:
rm -f atinout
--
2.32.0