[PATCH] x86/stacktool: Fix LDFLAGS order in Makefile

From: Chris J Arges
Date: Tue Sep 15 2015 - 12:45:27 EST


When building tools/stacktool I get a compiler error which causes libelf to not
properly link. This patch adjusts the LDFLAG after the object file, which
allows gcc to properly link.

Signed-off-by: Chris J Arges <chris.j.arges@xxxxxxxxxxxxx>
---
tools/stacktool/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/stacktool/Makefile b/tools/stacktool/Makefile
index 87a3ee0..9f5d2f9 100644
--- a/tools/stacktool/Makefile
+++ b/tools/stacktool/Makefile
@@ -39,7 +39,7 @@ $(STACKTOOL): $(STACKTOOL_IN)
diff -I'^#include' arch/x86/insn/inat.h ../../arch/x86/include/asm/inat.h >/dev/null && \
diff -I'^#include' arch/x86/insn/inat_types.h ../../arch/x86/include/asm/inat_types.h >/dev/null) \
|| echo "Warning: stacktool: x86 instruction decoder differs from kernel" >&2 )) || true
- $(QUIET_LINK)$(CC) $(LDFLAGS) $(STACKTOOL_IN) -o $@
+ $(QUIET_LINK)$(CC) $(STACKTOOL_IN) $(LDFLAGS) -o $@

clean:
$(call QUIET_CLEAN, stacktool) $(RM) $(STACKTOOL)
--
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/