• Michael S. Tsirkin's avatar
    perf tools: Support static build · 9fb3f52e
    Michael S. Tsirkin authored
    commit 75138650 upstream.
    
    This makes it possible to build perf statically, by
    performing:
    
      make LDFLAGS=-static
    
    Since static libraries are only searched in the order they are
    specified, move library list from LDFLAGS to EXTLIBS, so that
    they are put at the end of linker command line.
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    LKML-Reference: <20091029152002.GA5406@redhat.com>
    [ v2: resolved conflicts ]
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    [bwh: Backport to 2.6.32]
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    9fb3f52e
Makefile 30.3 KB