]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
removed -g from DEBUGFLAGS
authorYann Collet <cyan@fb.com>
Fri, 5 May 2017 00:24:29 +0000 (17:24 -0700)
committerYann Collet <cyan@fb.com>
Fri, 5 May 2017 00:24:29 +0000 (17:24 -0700)
It inflates binary sizes, which is negative for the Windows build.
It also makes it impossible to check if 2 different source codes
get nonetheless compiled to the same binary,
since checksum will be different, due to integrated source code.

lib/Makefile
programs/Makefile

index d8d8e179d20587eabc30f4a538e3c8bdd8bd24dc..f5f610372472fadfc5b2bba9f457dbb8f926d274 100644 (file)
@@ -22,7 +22,7 @@ VERSION?= $(LIBVER)
 
 CPPFLAGS+= -I. -I./common -DXXH_NAMESPACE=ZSTD_
 CFLAGS  ?= -O3
-DEBUGFLAGS = -g -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
+DEBUGFLAGS = -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
            -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
            -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security
 CFLAGS  += $(DEBUGFLAGS) $(MOREFLAGS)
index 0c920a87bcbd89432f96a5b0fc6721199e4571b3..bb40253b9c2a58d08eb211451ce6c672b9c40970 100644 (file)
@@ -41,7 +41,7 @@ CPPFLAGS+= -I$(ZSTDDIR) -I$(ZSTDDIR)/common -I$(ZSTDDIR)/compress \
            -I$(ZSTDDIR)/dictBuilder \
            -DXXH_NAMESPACE=ZSTD_   # because xxhash.o already compiled with this macro from library
 CFLAGS  ?= -O3
-DEBUGFLAGS = -g -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
+DEBUGFLAGS = -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
           -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
           -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security
 CFLAGS  += $(DEBUGFLAGS) $(MOREFLAGS)