ports/sysutils/pcapfix/files/patch-Makefile
Kevin Bowling a302d29cbe sysutils/pcapfix: update to 1.1.5
Changelog https://github.com/Rup0rt/pcapfix/blob/v1.1.5/Changelog

PR:		254818
Approved by:	Vidar Karlsen <vidar@karlsen.tech> (maintainer)
2021-04-07 23:05:19 -07:00

22 lines
675 B
Text

--- Makefile.orig 2021-04-06 13:54:58 UTC
+++ Makefile
@@ -7,18 +7,7 @@ OPTFLAGS = $(shell getconf LFS_CFLAGS) -D_FORTIFY_SOUR
WARNFLAGS = -Wall -Wextra -std=gnu99 -pedantic -Wformat -Werror=format-security
DEBUGFLAGS = -g
CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS)
-
-# Determine extra LDFLAGS
-OS := $(shell uname)
-ifeq ($(findstring Darwin,$(OS)),Darwin)
- skip_ldflags = yes
-endif
-ifeq ($(findstring CYGWIN,$(OS)),CYGWIN)
- skip_ldflags = yes
-endif
-ifndef skip_ldflags
- LDFLAGS += -Wl,-z,relro
-endif
+LDFLAGS += -Wl,-z,relro
all: pcap pcap_kuznet pcapng
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) pcapfix.c pcap.o pcap_kuznet.o pcapng.o -o pcapfix