rpm: use build flags provided by the distribution

Among other things, this enable various hardening options.

QubesOS/qubes-issues#2259
This commit is contained in:
Marek Marczykowski-Górecki 2018-08-01 02:20:57 +02:00
parent be09476a65
commit 7667b0dc16
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
CC=gcc CC ?= gcc
CFLAGS+=-I. -g -O2 -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags vchan-$(BACKEND_VMM)` CFLAGS += -I. -g -O2 -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags vchan-$(BACKEND_VMM)`
LDFLAGS=-pie LDFLAGS += -pie
LDLIBS=`pkg-config --libs vchan-$(BACKEND_VMM)` -lqrexec-utils -lpam LDLIBS = `pkg-config --libs vchan-$(BACKEND_VMM)` -lqrexec-utils -lpam
all: qrexec-agent qrexec-client-vm qrexec-fork-server all: qrexec-agent qrexec-client-vm qrexec-fork-server
qrexec-agent: qrexec-agent.o qrexec-agent-data.o qrexec-agent: qrexec-agent.o qrexec-agent-data.o

View File

@ -269,6 +269,7 @@ Thunar support for Qubes VM tools
%setup -q %setup -q
%build %build
%{?set_build_flags}
for dir in qubes-rpc qrexec misc; do for dir in qubes-rpc qrexec misc; do
make -C $dir BACKEND_VMM=@BACKEND_VMM@ make -C $dir BACKEND_VMM=@BACKEND_VMM@
done done