FreeBSD compat
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
# Third-party dependencies: libcurl and json-c (auto-detected via pkg-config).
|
||||
|
||||
CC ?= cc
|
||||
CFLAGS ?= -O3 -flto -pipe -std=c11 -Wall -Wextra -pthread -D_POSIX_C_SOURCE=200809L
|
||||
CFLAGS ?= -O3 -flto -pipe -std=c11 -Wall -D_POSIX_C_SOURCE=200809L -pthread
|
||||
SRCS = main.c server.c jsonapi.c util.c
|
||||
HDRS = hygate.h
|
||||
BINDIR = bin
|
||||
BIN = $(BINDIR)/hygate
|
||||
STATICBIN = $(BINDIR)/hygate.static
|
||||
|
||||
# Library flags resolved at recipe time via pkg-config (portable backtick form).
|
||||
# Library flags resolved at recipe time via pkg-config (portable).
|
||||
# Falls back to plain -lcurl -ljson-c when pkg-config is unavailable.
|
||||
LIBS = $$(pkg-config --cflags --libs libcurl json-c 2>/dev/null || echo '-lcurl -ljson-c')
|
||||
LIBS = $$(pkg-config --cflags --libs libcurl json-c 2>/dev/null || echo '-lcurl -ljson-c') -pthread
|
||||
|
||||
# For static builds we need the full transitive dependency list, which
|
||||
# pkg-config --static provides (nghttp2, ssl, crypto, z, ...).
|
||||
|
||||
Reference in New Issue
Block a user