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