Package: exactimage / 1.0.2-1

Don-t-compile-dynamic-shared-objects-as-PIE.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Sven Eckelmann <sven@narfation.org>
Date: Mon, 25 Jan 2016 22:52:18 +0100
Subject: Don't compile dynamic shared objects as PIE

---
 build/bottom.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/bottom.make b/build/bottom.make
index eeea57b..ff3db3b 100644
--- a/build/bottom.make
+++ b/build/bottom.make
@@ -66,7 +66,7 @@ $($(X_MODULE)_OUTPUT)/$(BINARY)$(X_LIBEXT): $($(X_MODULE)_OBJS)
 #	$(Q)$(RANLIB) '$@'
 
 $($(X_MODULE)_OUTPUT)/$(BINARY)$(X_DYNEXT): $($(X_MODULE)_OBJS)
-	$(Q)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $($(dir $@)CXXFLAGS) $(TARGET_ARCH) $(X_DYNFLAGS) -o '$@' $^ $(LDFLAGS) $($(dir $@)LDFLAGS)
+	$(Q)$(CXX) $(filter-out -fPIE,$(CXXFLAGS)) $(CPPFLAGS) $(filter-out -fPIE,$($(dir $@)CXXFLAGS)) $(TARGET_ARCH) $(X_DYNFLAGS) -o '$@' $^ $(filter-out -fPIE,$(filter-out -pie,$(LDFLAGS))) $(filter-out -fPIE,$(filter-out -pie,$($(dir $@)LDFLAGS)))
 
 $($(X_MODULE)_OUTPUT)/$(BINARY)$(X_EXEEXT): $($(X_MODULE)_OBJS)
 	$(Q)$(CXX) $(CXXFLAGS) $(CPPFLAGS) $($(dir $@)CXXFLAGS) $(TARGET_ARCH) $(X_EXEFLAGS) -o '$@' $^ $(LDFLAGS) $($(dir $@)LDFLAGS)