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

Always link with -pthread on FreeBSD and OpenBSD... this fixes crashes.

with single-thread programs which use SDL audio.

Someone should test tone under Linux with SDL audio...
parent 1bc09002
No related branches found
No related tags found
No related merge requests found
......@@ -281,14 +281,17 @@ ifeq ($(os),linux) # Linux
endif
endif
MT_CFLAGS += -D_THREAD_SAFE -D_REENTRANT
CFLAGS += -D_THREAD_SAFE -D_REENTRANT
ifeq ($(os),freebsd) # FreeBSD
MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -pthread
LDFLAGS += -pthread
XP_SEM := 1
else
ifeq ($(os),openbsd) # OpenBSD
MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -pthread
LDFLAGS += -pthread
XP_SEM := 1
else
ifeq ($(os),netbsd) # NetBSD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment