Skip to content

Commit

Permalink
Makefile: When compiling on OS X -lrt breaks the link phase
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgi Chorbadzhiyski committed Oct 11, 2016
1 parent 27b879c commit 9b53fba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ endif
RM = /bin/rm -f
Q = @

uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
ifeq ($(uname_S),Darwin)
LIBS = -lpthread -lm
else
LIBS = -lpthread -lm -lrt
endif

FUNCS_DIR = libfuncs
FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
Expand Down

0 comments on commit 9b53fba

Please sign in to comment.