You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
828 B
28 lines
828 B
--- pmdk-1.10.1/src/Makefile.inc.orig 2022-02-01 10:57:54.530694627 -0500
|
|
+++ pmdk-1.10.1/src/Makefile.inc 2022-02-01 10:59:19.461777353 -0500
|
|
@@ -67,14 +67,10 @@ DEFAULT_CFLAGS += -DSTRINGOP_TRUNCATION_
|
|
endif
|
|
|
|
ifeq ($(DEBUG),1)
|
|
-# Undefine _FORTIFY_SOURCE in case it's set in system-default or
|
|
-# user-defined CFLAGS as it conflicts with -O0.
|
|
-DEBUG_CFLAGS += -Wp,-U_FORTIFY_SOURCE
|
|
-DEBUG_CFLAGS += -O0 -ggdb -DDEBUG
|
|
LIB_SUBDIR = /pmdk_debug
|
|
OBJDIR = debug
|
|
else
|
|
-DEFAULT_CFLAGS += -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
|
|
+DEFAULT_CFLAGS += -O2 -g -D_FORTIFY_SOURCE=2
|
|
LIB_SUBDIR =
|
|
OBJDIR = nondebug
|
|
endif
|
|
@@ -119,7 +115,7 @@ endif
|
|
CFLAGS += $(EXTRA_CFLAGS)
|
|
|
|
ifeq ($(DEBUG),1)
|
|
-CFLAGS += $(EXTRA_CFLAGS_DEBUG) $(DEBUG_CFLAGS)
|
|
+CFLAGS += $(EXTRA_CFLAGS_DEBUG) -DDEBUG
|
|
else
|
|
CFLAGS += $(EXTRA_CFLAGS_RELEASE)
|
|
endif
|