Browse Source

Makefile: When compiling on OS X -lrt breaks the link phase

Georgi Chorbadzhiyski 7 years ago
parent
commit
9b53fba7ef
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Makefile

+ 5
- 0
Makefile View File

13
 RM = /bin/rm -f
13
 RM = /bin/rm -f
14
 Q = @
14
 Q = @
15
 
15
 
16
+uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
17
+ifeq ($(uname_S),Darwin)
18
+LIBS = -lpthread -lm
19
+else
16
 LIBS = -lpthread -lm -lrt
20
 LIBS = -lpthread -lm -lrt
21
+endif
17
 
22
 
18
 FUNCS_DIR = libfuncs
23
 FUNCS_DIR = libfuncs
19
 FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a
24
 FUNCS_LIB = $(FUNCS_DIR)/libfuncs.a

Loading…
Cancel
Save