Permalink
Browse files

Added ldconfig to install target (#321)

* Added ldconfig to install target

* Added logic for ldconfig depending on platform
  • Loading branch information...
shadinua authored and vixentael committed Sep 5, 2018
1 parent 294fd6b commit ab4d78bc6d9863783d0f92e8ce7f8174bd660d94
Showing with 9 additions and 4 deletions.
  1. +9 −4 Makefile
View
@@ -55,6 +55,8 @@ UNAME=$(shell uname)
ifeq ($(UNAME),Darwin)
IS_MACOS := true
else ifeq ($(UNAME),Linux)
IS_LINUX := true
endif
define themisecho
@@ -182,10 +184,6 @@ endif
SHARED_EXT = so
IS_LINUX = $(shell $(CC) -dumpmachine 2>&1 | $(EGREP) -c "linux")
IS_MINGW = $(shell $(CC) -dumpmachine 2>&1 | $(EGREP) -c "mingw")
IS_CLANG_COMPILER = $(shell $(CC) --version 2>&1 | $(EGREP) -i -c "clang version")
ifeq ($(shell uname),Darwin)
SHARED_EXT = dylib
ifneq ($(SDK),)
@@ -203,6 +201,10 @@ CFLAFS += -arch $(ARCH)
endif
endif
ifneq ($(shell $(CC) --version 2>&1 | grep -E -i -c "clang version"),0)
IS_CLANG_COMPILER := true
endif
ifdef COVERAGE
CFLAGS += -g -O0 --coverage
COVERLDFLAGS = --coverage
@@ -355,6 +357,9 @@ install_shared_libs: err all make_install_dirs
@$(BUILD_CMD_)
install: install_soter_headers install_themis_headers install_static_libs install_shared_libs
ifdef IS_LINUX
@ldconfig
endif
get_version:
@echo $(VERSION)

0 comments on commit ab4d78b

Please sign in to comment.