mirror of
https://github.com/3proxy/3proxy.git
synced 2025-06-08 12:34:48 +08:00
Refresh Makefile.FreeBSD to current versions
Change default compilter to clang (cc) Append CFLAGS and LDFLAGS instead of hardcoding Remove hardcoded optimization and no-strict-aliasing Fix typo Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
This commit is contained in:
parent
5fa261e91e
commit
c11ef73cc1
@ -1,20 +1,17 @@
|
||||
#
|
||||
# 3 proxy Makefile for GCC/Unix
|
||||
#
|
||||
# You can try to remove -DWITH_STD_MALLOC to CFLAGS to use optimized malloc
|
||||
# libraries
|
||||
# 3 proxy Makefile for FreeBSD
|
||||
#
|
||||
# remove -DNOODBC from CFLAGS and add -lodbc to LDFLAGS to compile with ODBC
|
||||
# library support. Add -DSAFESQL for poorely written ODBC library / drivers.
|
||||
|
||||
BUILDDIR = ../bin/
|
||||
CC ?= gcc
|
||||
CC ?= cc
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user