From 182fe850db814249b9d0dd1a558349c4071b1141 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 21 Nov 2024 15:25:19 +0300 Subject: [PATCH] makefiles: use lto --- ip2net/Makefile | 2 +- nfq/BSDmakefile | 2 +- nfq/Makefile | 3 +-- tpws/BSDmakefile | 2 +- tpws/Makefile | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ip2net/Makefile b/ip2net/Makefile index b144893..5893f58 100644 --- a/ip2net/Makefile +++ b/ip2net/Makefile @@ -1,5 +1,5 @@ CC ?= gcc -CFLAGS += -std=gnu99 -Os +CFLAGS += -std=gnu99 -Os -flto=auto CFLAGS_BSD = -Wno-address-of-packed-member CFLAGS_WIN = -static LIBS = diff --git a/nfq/BSDmakefile b/nfq/BSDmakefile index e782a07..8c611c0 100644 --- a/nfq/BSDmakefile +++ b/nfq/BSDmakefile @@ -1,5 +1,5 @@ CC ?= cc -CFLAGS += -std=gnu99 -s -Os -Wno-address-of-packed-member +CFLAGS += -std=gnu99 -s -Os -Wno-address-of-packed-member -flto=auto LIBS = -lz SRC_FILES = *.c crypto/*.c diff --git a/nfq/Makefile b/nfq/Makefile index 92adf99..3a2659a 100644 --- a/nfq/Makefile +++ b/nfq/Makefile @@ -1,7 +1,6 @@ CC ?= gcc CFLAGS += -std=gnu99 -Os -CFLAGS_BSD = -Wno-address-of-packed-member -CFLAGS_MAC = -mmacosx-version-min=10.8 +CFLAGS_BSD = -Wno-address-of-packed-member -flto=auto CFLAGS_CYGWIN = -Wno-address-of-packed-member -static LIBS_LINUX = -lnetfilter_queue -lnfnetlink -lz LIBS_BSD = -lz diff --git a/tpws/BSDmakefile b/tpws/BSDmakefile index c86e4bd..922ca61 100644 --- a/tpws/BSDmakefile +++ b/tpws/BSDmakefile @@ -1,5 +1,5 @@ CC ?= cc -CFLAGS += -std=gnu99 -s -Os +CFLAGS += -std=gnu99 -s -Os -flto=auto LIBS = -lz -lpthread SRC_FILES = *.c diff --git a/tpws/Makefile b/tpws/Makefile index 00814c4..3d6624d 100644 --- a/tpws/Makefile +++ b/tpws/Makefile @@ -1,5 +1,5 @@ CC ?= gcc -CFLAGS += -std=gnu99 -Os +CFLAGS += -std=gnu99 -Os -flto=auto CFLAGS_BSD = -Wno-address-of-packed-member LIBS = -lz -lpthread LIBS_ANDROID = -lz