blob: 8245df591b5bb095e34ec389e5ac9ef21a9692c1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- 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
|