To compile under FreeBSD
FossilOrigin-Name: 61f78db66d546e0c7bc55991e0e6c6da8656cc98a1d313cefc44bda0ec493609
This commit is contained in:
parent
d4fa4269e7
commit
91d58b7e36
@ -5,3 +5,4 @@ include ../Config.mak
|
|||||||
|
|
||||||
SSL_LIBRARY=OPENSSL
|
SSL_LIBRARY=OPENSSL
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,4 +34,5 @@ WITH_OPENSSL=1
|
|||||||
#
|
#
|
||||||
LIBDIR=lib
|
LIBDIR=lib
|
||||||
|
|
||||||
|
CFLAGS=-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -pedantic -std=c90 -Wall
|
||||||
|
|
||||||
|
@ -25,13 +25,13 @@ endif
|
|||||||
|
|
||||||
ifeq ($(CC),clang)
|
ifeq ($(CC),clang)
|
||||||
LDFLAGS += -g -L/usr/local/lib
|
LDFLAGS += -g -L/usr/local/lib
|
||||||
CFLAGS += -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -fPIC -g -O0 -D_REENTRANT -I /usr/local/include -I../
|
CFLAGS += -fPIC -g -O0 -D_REENTRANT -I /usr/local/include -I../
|
||||||
LD = clang
|
LD = clang
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CC),gcc)
|
ifeq ($(CC),gcc)
|
||||||
LDFLAGS += -g -L/usr/local/lib
|
LDFLAGS += -g -L/usr/local/lib
|
||||||
CFLAGS += -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -fPIC -g -O0 -D_REENTRANT -I /usr/local/include -I../
|
CFLAGS += -fPIC -g -O0 -D_REENTRANT -I /usr/local/include -I../
|
||||||
LD = gcc
|
LD = gcc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ LIBS+=-lrt
|
|||||||
LIBS+=-lpthread
|
LIBS+=-lpthread
|
||||||
LIBS+=-lconfuse
|
LIBS+=-lconfuse
|
||||||
LIBS+=-lsqlite3
|
LIBS+=-lsqlite3
|
||||||
LIBS+=-ldl
|
#LIBS+=-ldl
|
||||||
|
|
||||||
|
|
||||||
ifeq ($(SSL_LIBRARY),GNUTLS)
|
ifeq ($(SSL_LIBRARY),GNUTLS)
|
||||||
|
Loading…
Reference in New Issue
Block a user