ports/net/3proxy/files/patch-Makefile.unix
Kirill Ponomarev 57a197b095 Update to 0.8.12
* utilize logdir
* use gzip as default archiver in config
* install pamauth.so plugin

PR:		227700
Submitted by:	maintainer
2018-04-22 17:26:23 +00:00

26 lines
864 B
Text

--- Makefile.unix.orig 2018-04-18 19:48:45 UTC
+++ Makefile.unix
@@ -8,18 +8,18 @@
# library support. Add -DSAFESQL for poorely written ODBC library / drivers.
BUILDDIR =
-CC = gcc
+CC ?= gcc
# you may need -L/usr/pkg/lib for older NetBSD versions
-CFLAGS = -g -O2 -fno-strict-aliasing -c -pthread -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
+CFLAGS = -c -O2 -pipe -fstack-protector -fno-strict-aliasing -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL
COUT = -o
-LN = gcc
-LDFLAGS = -O2 -fno-strict-aliasing -pthread
+LN ?= ${CC}
+LDFLAGS = -fno-strict-aliasing -pthread
# -lpthreads may be reuqired on some platforms instead of -pthreads
# -ldl or -lld may be required for some platforms
DCFLAGS = -fpic
DLFLAGS = -shared
-DLSUFFICS = .ld.so
+DLSUFFICS = .so
LIBS =
LIBSPREFIX = -l
LIBSSUFFIX =