trace-cmd/trace-cmd-2.6-libdir.patch

18 lines
596 B
Diff
Raw Normal View History

2016-08-18 04:39:34 +00:00
diff -up ./Makefile.orig ./Makefile
--- ./Makefile.orig 2016-08-18 00:26:57.580940826 -0400
+++ ./Makefile 2016-08-18 00:29:51.594273746 -0400
@@ -31,6 +31,13 @@ $(call allow-override,AR,$(CROSS_COMPILE
EXT = -std=gnu99
INSTALL = install
+# figure out what arch we are on and install to the right place
+ARCH = $(shell getconf LONG_BIT)
+LIBDIR_32 = lib
+LIBDIR_64 = lib64
+libdir=$(LIBDIR_$(ARCH))
+
+
# Use DESTDIR for installing into a different root directory.
# This is useful for building a package. The program will be
# installed in this directory as if it was the root directory.