Package: apt-move / 4.2.27-5

fix-makefile.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
22
23
24
25
Description: patch to improve the gcc hardening.
Author: Raphael Mota Ramos <raphaelmota.ti@gmail.com>
Last-Update: 2016-02-22

Index: apt-move-4.2.27/Makefile
===================================================================
--- apt-move-4.2.27.orig/Makefile
+++ apt-move-4.2.27/Makefile
@@ -1,6 +1,6 @@
 # Debian makefile for apt-move
 
-CXXFLAGS = -g -O2 -Wall
+CXXFLAGS += -g -O2 -Wall
 LDLIBS = -lapt-pkg
 
 DESTDIR =
@@ -15,7 +15,7 @@ SHAREDIR = $(PREFIX)/share/apt-move
 all: fetch
 
 fetch: fetch.o
-	$(CXX) -o $@ $(LDFLAGS) $^ $(LOADLIBS) $(LDLIBS)
+	$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $^ $(LOADLIBS) $(LDLIBS)
 
 clean:
 	rm -f fetch *.o