]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix visibility of symbols in .so (#2441)
authoryumeyao <yumeyao@gmail.com>
Fri, 8 Jan 2021 22:27:31 +0000 (06:27 +0800)
committerGitHub <noreply@github.com>
Fri, 8 Jan 2021 22:27:31 +0000 (14:27 -0800)
Fix visibility of symbols in .so and add an alias for renamed API

lib/Makefile

index a0c0ca10b562533a90f8b2b60e35eb7e905c54df..a3b2ee740b888ae27d79586cc9c435c52d1afe5d 100644 (file)
@@ -255,8 +255,8 @@ else  # not Windows
 
 LIBZSTD = libzstd.$(SHARED_EXT_VER)
 .PHONY: $(LIBZSTD)  # must be run every time
-$(LIBZSTD): CFLAGS += -fPIC
-$(LIBZSTD): LDFLAGS += -shared -fvisibility=hidden
+$(LIBZSTD): CFLAGS += -fPIC -fvisibility=hidden
+$(LIBZSTD): LDFLAGS += -shared
 
 ifndef BUILD_DIR
 # determine BUILD_DIR from compilation flags