..
This commit is contained in:
parent
412c3255c2
commit
74de89d2b1
3 changed files with 8 additions and 4 deletions
6
Makefile
6
Makefile
|
@ -7,6 +7,10 @@ PREFIX = $(DESTDIR)/opt/CronosAgent
|
|||
|
||||
ifeq ($(OS), Linux)
|
||||
FLAGS += -rdynamic
|
||||
KIND := $(shell grep -E "^6.0" /etc/debian_version > /dev/null ; echo $?)
|
||||
ifneq ($(KIND), 0)
|
||||
LIBRARIES += rt
|
||||
endif
|
||||
ifeq ($(USE_OPENSSL), yes)
|
||||
FLAGS += -DUSE_OPENSSL
|
||||
DEPENDENCIES += openssl
|
||||
|
@ -35,7 +39,7 @@ LIBS += $(foreach library, $(LIBRARIES), -l$(library))
|
|||
CC = gcc
|
||||
CFLAGS += $(FLAGS) -std=gnu99
|
||||
|
||||
ifneq ($(strip $(DEPENDENCIES)),)
|
||||
ifneq ($(strip $(DEPENDENCIES)), )
|
||||
FLAGS += $(shell pkg-config --cflags $(DEPENDENCIES))
|
||||
LIBS += $(shell pkg-config --libs $(DEPENDENCIES))
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue