added UNAME_TARGET_SYSTEM build flag to configure shared lib flags
This commit is contained in:
+7
-2
@@ -73,13 +73,15 @@ endif
|
|||||||
|
|
||||||
# macOS linker doesn't support -soname, and use different extension
|
# macOS linker doesn't support -soname, and use different extension
|
||||||
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
|
# see : https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryDesignGuidelines.html
|
||||||
ifeq ($(UNAME), Darwin)
|
UNAME_TARGET_SYSTEM ?= $(UNAME)
|
||||||
|
|
||||||
|
ifeq ($(UNAME_TARGET_SYSTEM), Darwin)
|
||||||
SHARED_EXT = dylib
|
SHARED_EXT = dylib
|
||||||
SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
|
SHARED_EXT_MAJOR = $(LIBVER_MAJOR).$(SHARED_EXT)
|
||||||
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
|
SHARED_EXT_VER = $(LIBVER).$(SHARED_EXT)
|
||||||
SONAME_FLAGS = -install_name $(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER)
|
SONAME_FLAGS = -install_name $(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER)
|
||||||
else
|
else
|
||||||
ifeq ($(UNAME), AIX)
|
ifeq ($(UNAME_TARGET_SYSTEM), AIX)
|
||||||
SONAME_FLAGS =
|
SONAME_FLAGS =
|
||||||
else
|
else
|
||||||
SONAME_FLAGS = -Wl,-soname=libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
|
SONAME_FLAGS = -Wl,-soname=libzstd.$(SHARED_EXT).$(LIBVER_MAJOR)
|
||||||
@@ -108,6 +110,9 @@ ifndef BUILD_DIR
|
|||||||
# determine BUILD_DIR from compilation flags
|
# determine BUILD_DIR from compilation flags
|
||||||
|
|
||||||
libzstd.a:
|
libzstd.a:
|
||||||
|
@echo uname_target $(UNAME_TARGET)
|
||||||
|
@echo target_system $(TARGET_SYSTEM)
|
||||||
|
@echo uname $(uname)
|
||||||
$(SET_CACHE_DIRECTORY)
|
$(SET_CACHE_DIRECTORY)
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user