Skip to content

Commit 62c9112

Browse files
committed
Leave defining _FORTIFY_SOURCE to distribution policy
Different distributions have different policy about this flag, avoid setting it here to not conflict with distribution value. Kinda related to QubesOS/qubes-issues#9597
1 parent ed101ff commit 62c9112

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gui-daemon/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extra_cflags := -I../include/ -g -O2 -Wall -Wextra -Werror -pie -fPIC \
3131
-fno-strict-aliasing \
3232
-fno-strict-overflow \
3333
-fno-delete-null-pointer-checks \
34-
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GNU_SOURCE -Werror=missing-prototypes
34+
-Wp,-D_GNU_SOURCE -Werror=missing-prototypes
3535

3636
LDLIBS := $(shell pkg-config --libs $(pkgs)) -lqubes-pure
3737
all: qubes-guid # qubes-guid.1

pulse/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VCHAN_PKG = $(if $(BACKEND_VMM),vchan-$(BACKEND_VMM),vchan)
22
CC ?= gcc
3-
CFLAGS += -Wall -Wextra -Werror -g -O2 -fPIC -D_FORTIFY_SOURCE=2 -fcf-protection -fstack-clash-protection -D_GNU_SOURCE=
3+
CFLAGS += -Wall -Wextra -Werror -g -O2 -fPIC -fcf-protection -fstack-clash-protection -D_GNU_SOURCE=
44
VCHANLIBS=`pkg-config --libs $(VCHAN_PKG)`
55
VCHANCFLAGS=`pkg-config --cflags $(VCHAN_PKG)`
66
GLIBCFLAGS=`pkg-config --cflags glib-2.0`

0 commit comments

Comments
 (0)