File: 02_fix-link-order.patch

package info (click to toggle)
procinfo 1%3A2.0.304-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 552 kB
  • sloc: cpp: 1,633; sh: 153; perl: 84; ansic: 28; makefile: 27
file content (21 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: fix arguments order when linking
 linker options should go _after_ the sources file list.
 Building with --as-needed requires such correct order
Author: Martin Pitt <martin.pitt@ubuntu.com>
Acked-By: Mattia Rizzolo <mattia@debian.org>
Bug-Debian: https://bugs.debian.org/641521
Bug-Ubuntu: https://launchpad.net/bugs/771106
Forwarded: no
Last-Update: 2017-08-23

--- a/Makefile.in
+++ b/Makefile.in
@@ -44,7 +44,7 @@
 cygwin_procstat.cpp cygwin_rendercpupagestat.cpp \
 lib/routines.cpp lib/timeRoutines.cpp lib/prettyPrint.cpp \
 Makefile
-	$(CXX) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) procinfo.cpp -o $@
+	$(CXX) $(CFLAGS) $(CPPFLAGS) procinfo.cpp $(LDFLAGS) -o $@
 
 #procinfo.o: procinfo.cpp procinfo.h
 #	$(XX) $(CFLAGS) procinfo.cpp -o procinfo.o