Commit 6ad4ac5a authored by rswindell's avatar rswindell
Browse files

Enables Deuce's fix for running all threads in Linux build as non-root user

(_THREAD_SUID_BROKEN).
parent bbb48ded
......@@ -58,16 +58,20 @@ CFLAGS += -DJAVASCRIPT -I../mozilla/js/src -I$(XPDEV) -I$(UIFC)
ifeq ($(os),FreeBSD) # FreeBSD
CFLAGS += -D_THREAD_SAFE
# Math libraries needed and uses pthread
LFLAGS := -lm -pthread
LFLAGS := -lm -pthread -lutil
else # Linux / Other UNIX
# Math and pthread libraries needed
ifdef bcc
LFLAGS := libpthread.so
else
LFLAGS := -lm -lpthread
LFLAGS := -lm -lpthread -lutil
endif
endif
ifeq ($(os),Linux) # Linux
CFLAGS += -D_THREAD_SUID_BROKEN
endif
ifdef DEBUG
ifdef bcc
CFLAGS += -y -v -Od
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment