Files
guru/net-dialup/tcpser/files/tcpser-1.1.4_dont-hardcode-cflags-and-ldflags.patch
Seth Price 816a5cf1c6 net-dialup/tcpser: new package, add 1.1.4
Signed-off-by: Seth Price <sprice623@aol.com>
2023-12-26 18:42:14 -05:00

18 lines
612 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