From: Casey McGinty Date: Tue, 11 Sep 2018 23:19:34 +0000 (-0700) Subject: Disable -rdynamic LD option on Windows X-Git-Tag: v0.0.29~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1311%2Fhead;p=thirdparty%2Fzstd.git Disable -rdynamic LD option on Windows --- diff --git a/programs/Makefile b/programs/Makefile index 5c1ac33eb..6c39c9830 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -40,6 +40,8 @@ CPPFLAGS+= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/compress \ -DXXH_NAMESPACE=ZSTD_ ifeq ($(OS),Windows_NT) # MinGW assumed CPPFLAGS += -D__USE_MINGW_ANSI_STDIO # compatibility with %zu formatting +else +DEBUGFLAGS_LD+= -rdynamic # Enable backtrace symbol names for Linux/Darwin endif CFLAGS ?= -O3 DEBUGFLAGS+=-Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \ @@ -47,7 +49,6 @@ DEBUGFLAGS+=-Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \ -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security \ -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \ -Wredundant-decls -DEBUGFLAGS_LD+=-rdynamic CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS) FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)