[lib-result] Remove -lrt for non-Linux targets
This commit is contained in:
parent
c158d87b5a
commit
95555f1c63
|
@ -32,6 +32,12 @@ PICFLAG = -fPIC
|
|||
#STRIPFLAGS = -Wl,-s
|
||||
#LDFLAGS =
|
||||
|
||||
LIBS = -L$(LIBOWLPS_DIR) -lowlps
|
||||
OS := $(shell uname)
|
||||
ifeq ("$(OS)", "Linux")
|
||||
LIBS += -lrt
|
||||
endif
|
||||
|
||||
|
||||
## Cibles de compilation standard ##
|
||||
|
||||
|
@ -49,7 +55,7 @@ example : $(EXAMPLE)
|
|||
|
||||
% : %.o $(HEADER) $(STATIC)
|
||||
$(CC) $(STRIPFLAGS) $(XCFLAGS) -o $@ $< \
|
||||
$(STATIC) -L$(LIBOWLPS_DIR) -lowlps -lrt
|
||||
$(STATIC) $(LIBS)
|
||||
|
||||
# Compilation de la bibliothèque statique
|
||||
$(STATIC) : $(OBJS)
|
||||
|
|
Loading…
Reference in New Issue