guru/net-dialup/tcpser/files/tcpser-1.1.4_dont-hardcode-cflags-and-ldflags.patch
Seth M. Price 78dbea3503
net-dialup/tcpser: fix typo in CFLAGS patch
Closes: https://bugs.gentoo.org/920894
Signed-off-by: Seth M. Price <sprice623@aol.com>
2023-12-31 13:56:03 -05:00

18 lines
613 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Dont hardcode CFLAGS and LDFLAGS into Makefile.
From: Seth M. Price <sprice623@aol.com>
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@ SRCS = $(SRC)/bridge.c $(SRC)/debug.c $(SRC)/getcmd.c $(SRC)/ip.c $(SRC)/init.c
OBJS = $(SRC)/bridge.o $(SRC)/debug.o $(SRC)/getcmd.o $(SRC)/ip.o $(SRC)/init.o $(SRC)/modem_core.o $(SRC)/nvt.o $(SRC)/serial.o $(SRC)/ip232.o $(SRC)/util.o $(SRC)/phone_book.o $(SRC)/tcpser.o $(SRC)/dce.o $(SRC)/line.o
CC ?= gcc
DEF =
-CFLAGS = -O $(DEF) -Wall
-LDFLAGS = -lpthread
+CFLAGS +=
+LDFLAGS += -lpthread
DEPEND = makedepend $(DEF) $(CFLAGS)
all: tcpser