57de389ffb
- add pie-fix.patch: explicitly pass -pie linker flag when building drbdmon. The Makefile explicitly passes -fPIC, thereby breaking our gcc-PIE profile. In addition the Makefile also ignores CXXFLAGS and LDFLAGS passed via the environment. Therefore fix it with this patch. This makes drbdmon a PIE binary (bsc#1184122). OBS-URL: https://build.opensuse.org/request/show/887268 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd-utils?expand=0&rev=104
14 lines
513 B
Diff
14 lines
513 B
Diff
Index: drbd-utils-9.14.0/user/drbdmon/Makefile.in
|
|
===================================================================
|
|
--- drbd-utils-9.14.0.orig/user/drbdmon/Makefile.in
|
|
+++ drbd-utils-9.14.0/user/drbdmon/Makefile.in
|
|
@@ -1,6 +1,7 @@
|
|
CXXFLAGS=-std=c++11 -I. -I../shared -Icppdsaext/src -Wall -Werror --pedantic-errors -fPIC -O2 \
|
|
-Wsign-compare -Wpointer-arith -Wswitch-default -Wswitch-enum -Wtype-limits \
|
|
--Wmissing-declarations -Wshadow
|
|
+-Wmissing-declarations -Wshadow \
|
|
+-pie
|
|
CXX = @CXX@
|
|
LIBS = @LIBS@
|
|
|