avoid building watch or assistant on Solaris
Solaris does not use kqueue, it has some other poll interface.
This commit is contained in:
parent
788051802a
commit
baad8829c8
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -20,6 +20,10 @@ OPTFLAGS?=-DWITH_INOTIFY
|
|||
clibs=Utility/libdiskfree.o Utility/libmounts.o
|
||||
THREADFLAGS=$(shell if test -e `ghc --print-libdir`/libHSrts_thr.a; then printf -- -threaded; fi)
|
||||
else
|
||||
ifeq ($(OS),Solaris)
|
||||
# Solaris is not supported by the assistant or watch command.
|
||||
FEATURES:=$(shell echo $(FEATURES) | sed -e 's/-DWITH_ASSISTANT//' -e 's/-DWITH_WEBAPP//')
|
||||
else
|
||||
# BSD system
|
||||
THREADFLAGS=-threaded
|
||||
OPTFLAGS?=-DWITH_KQUEUE
|
||||
|
@ -32,6 +36,7 @@ CFLAGS=-Wall -m32
|
|||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ALLFLAGS = $(BASEFLAGS) $(FEATURES) $(OPTFLAGS) $(THREADFLAGS)
|
||||
|
||||
|
|
Loading…
Reference in a new issue