File Makefile-for-diff-arch.patch of Package libdlm.2839

Index: a/dlm_controld/Makefile
===================================================================
--- a/dlm_controld/Makefile
+++ b/dlm_controld/Makefile
@@ -1,6 +1,11 @@
 DESTDIR=
 PREFIX=/usr
-LIBNUM=/lib64
+cpu_bit=$(shell getconf LONG_BIT)
+ifeq ($(cpu_bit),64)
+	LIBNUM=/lib64
+else
+	LIBNUM=/lib
+endif
 BINDIR=$(PREFIX)/sbin
 LIBDIR=$(PREFIX)/$(LIBNUM)
 HDRDIR=$(PREFIX)/include 
Index: a/libdlm/Makefile
===================================================================
--- a/libdlm/Makefile
+++ b/libdlm/Makefile
@@ -1,6 +1,11 @@
 DESTDIR=
 PREFIX=/usr
-LIBNUM=/lib64
+cpu_bit=$(shell getconf LONG_BIT)
+ifeq ($(cpu_bit),64)
+	LIBNUM=/lib64
+else
+	LIBNUM=/lib
+endif
 LIBDIR=$(PREFIX)/$(LIBNUM)
 HDRDIR=$(PREFIX)/include 
 MANDIR=$(PREFIX)/share/man