ports/net/3proxy/files/patch-Makefile.FreeBSD
Daniel Engberg d0a322bbd6 net/3proxy: Minor cleanup in Makefile
Use official/correct repo
Reduce patching
Don't override LDFLAGS from Ports framework

PR:		256960
Approved by:	port maintainer timeout (2+ months), arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D32217
2021-09-29 09:42:27 +02:00

17 lines
587 B
Text

--- Makefile.FreeBSD.orig 2021-07-01 16:59:57 UTC
+++ Makefile.FreeBSD
@@ -10,11 +10,11 @@
BUILDDIR = ../bin/
CC ?= gcc
-CFLAGS = -c -O -fno-strict-aliasing -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
+CFLAGS += -c -DNOODBC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o
LN ?= ${CC}
-LDFLAGS = -pthread -O -fno-strict-aliasing
-# -lpthreads may be reuqired on some platforms instead of -pthreads
+LDFLAGS += -pthread
+# -lpthreads may be required on some platforms instead of -pthreads
# -ldl or -lld may be required for some platforms
DCFLAGS = -fPIC
DLFLAGS = -shared