Skip to content
Snippets Groups Projects
Commit 87a7adac authored by deuce's avatar deuce
Browse files

More QNX/NetBSD fixes

parent a1f5b8d5
No related branches found
No related tags found
No related merge requests found
......@@ -36,12 +36,28 @@ os := $(shell echo $(os) | tr -d "/")
LIBDIR := /usr/lib
DELETE := rm -f -v
ifeq ($(os),freebsd) # FreeBSD
LIBS = -pthread
CFLAGS += -D_THREAD_SAFE
LFLAGS := -pthread
else
ifeq ($(os),openbsd) # OpenBSD
LIBS = -pthread
else # Linux / Other UNIX
LIBS = -lpthread
CFLAGS += -D_THREAD_SAFE
LFLAGS := -pthread
else
ifeq ($(os),netbsd) # NetBSD
CFLAGS += -D_THREAD_SAFE -D__unix__ -D_NEED_SEM -I/usr/pkg/include
LFLAGS := -lpth -lpthread -L/usr/pkg/lib
else
ifeq ($(os),qnx) # QNX
CFLAGS += -D_THREAD_SAFE
LFLAGS :=
else # Linux / Other UNIX
ifdef bcc
LFLAGS := libpthread.a
else
LFLAGS := -lpthread
endif
endif
endif
endif
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment