31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
Index: 3proxy/Makefile.Linux
|
|
===================================================================
|
|
--- 3proxy.orig/Makefile.Linux
|
|
+++ 3proxy/Makefile.Linux
|
|
@@ -8,13 +8,13 @@
|
|
# library support. Add -DSAFESQL for poorely written ODBC library / drivers.
|
|
|
|
BUILDDIR = ../bin/
|
|
-CC = gcc
|
|
|
|
-CFLAGS = -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER
|
|
+
|
|
+CFLAGS = -fPIC -fno-strict-aliasing -c -pthread -DWITHSPLICE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER
|
|
COUT = -o
|
|
LN = $(CC)
|
|
DCFLAGS =
|
|
-LDFLAGS = -fPIE -O2 -fno-strict-aliasing -pthread
|
|
+LDFLAGS = -fno-strict-aliasing
|
|
DLFLAGS = -shared
|
|
DLSUFFICS = .ld.so
|
|
# -lpthreads may be reuqired on some platforms instead of -pthreads
|
|
@@ -33,7 +33,7 @@ MAKEFILE = Makefile.Linux
|
|
# PamAuth requires libpam, you may require pam-devel package to be installed
|
|
# SSLPlugin requires -lcrypto -lssl
|
|
#LIBS = -lcrypto -lssl -ldl
|
|
-LIBS = -ldl
|
|
+LIBS = -lcrypto -lssl -ldl -pthread
|
|
#PLUGINS = SSLPlugin StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin PamAuth
|
|
PLUGINS = StringsPlugin TrafficPlugin PCREPlugin TransparentPlugin
|
|
|