]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Apply flags to libzstd-nomt in libzstd style 2628/head
authorStephen Kitt <steve@sk2.org>
Fri, 7 May 2021 11:22:53 +0000 (13:22 +0200)
committerStephen Kitt <steve@sk2.org>
Fri, 7 May 2021 11:25:27 +0000 (13:25 +0200)
... for consistency (this doesn't actually change the build flags used
in practice, currently).

Signed-off-by: Stephen Kitt <steve@sk2.org>
lib/Makefile

index 2ce696b5d313507f24fc561080dc190006ca1f0f..98bca23f97e32d1ce34911d5643b7466595ad01d 100644 (file)
@@ -334,7 +334,8 @@ include $(wildcard $(DEPFILES))
 # Special case : building library in single-thread mode _and_ without zstdmt_compress.c
 ZSTDMT_FILES = compress/zstdmt_compress.c
 ZSTD_NOMT_FILES = $(filter-out $(ZSTDMT_FILES),$(ZSTD_FILES))
-libzstd-nomt: LDFLAGS += -shared -fPIC -fvisibility=hidden
+libzstd-nomt: CFLAGS += -fPIC -fvisibility=hidden
+libzstd-nomt: LDFLAGS += -shared
 libzstd-nomt: $(ZSTD_NOMT_FILES)
        @echo compiling single-thread dynamic library $(LIBVER)
        @echo files : $(ZSTD_NOMT_FILES)