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
|