fixup! Fix bug #167 - Build errors on OpenBSD.

This commit is contained in:
Jan Vidar Krey 2011-12-09 13:41:25 +01:00
parent 7825c413d4
commit 8d607dff13

View File

@ -17,6 +17,7 @@ BITS ?= AUTO
SILENT ?= YES SILENT ?= YES
TERSE ?= NO TERSE ?= NO
STACK_PROTECT ?= NO STACK_PROTECT ?= NO
NEED_LIBDL ?= NO
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
WINDOWS ?= YES WINDOWS ?= YES
@ -33,6 +34,10 @@ ifeq ($(OPSYS),Haiku)
LDLIBS += -lnetwork LDLIBS += -lnetwork
endif endif
ifeq ($(OPSYS),Linux)
NEED_LIBDL = YES
endif
CFLAGS += -I./src/ CFLAGS += -I./src/
ifeq ($(OPSYS),Windows) ifeq ($(OPSYS),Windows)
@ -120,6 +125,10 @@ CFLAGS += -DSSL_SUPPORT
LDLIBS += -lssl -lcrypto LDLIBS += -lssl -lcrypto
endif endif
ifeq ($(NEED_LIBDL),YES)
LDLIBS += -ldl
endif
GIT_VERSION=$(shell git describe --tags 2>/dev/null || echo "") GIT_VERSION=$(shell git describe --tags 2>/dev/null || echo "")
GIT_REVISION=$(shell git show --abbrev-commit 2>/dev/null | head -n 1 | cut -f 2 -d " " || echo "") GIT_REVISION=$(shell git show --abbrev-commit 2>/dev/null | head -n 1 | cut -f 2 -d " " || echo "")
OLD_REVISION=$(shell grep GIT_REVISION revision.h 2>/dev/null | cut -f 3 -d " " | tr -d "\"") OLD_REVISION=$(shell grep GIT_REVISION revision.h 2>/dev/null | cut -f 3 -d " " | tr -d "\"")