mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Changelog https://github.com/Rup0rt/pcapfix/blob/v1.1.5/Changelog PR: 254818 Approved by: Vidar Karlsen <vidar@karlsen.tech> (maintainer)
22 lines
675 B
Text
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
|