From: Tom Zanussi Date: Tue, 24 Aug 2010 05:23:50 +0000 (-0500) Subject: perf tools: Fix linking errors with --as-needed flag X-Git-Tag: v2.6.37-rc1~214^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2481f3df4521e731da36afe7f0fe19a5c93e46d;p=pandora-kernel.git perf tools: Fix linking errors with --as-needed flag External shared libraries should never be appended to the LDFLAGS as this messes the linking order. As EXTLIBS collects those libraries, it seems that perl and python libraries should also be appended to EXTLIBS. Also fix the broken linking order. This is a refresh of a patch by Ozan Çağlayan and improved by both Tom Zanussi and Kirill A. Shutemov. Cc: Ozan Çağlayan Tested-by: Kirill A. Shutemov Tested-by: Tom Zanussi LKML-Reference: <1282627430.28324.8.camel@tropicana> Signed-off-by: Tom Zanussi Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed