35 lines
801 B
Diff
35 lines
801 B
Diff
|
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: libdlm-4.0.2/libdlm/Makefile
|
||
|
===================================================================
|
||
|
--- libdlm-4.0.2.orig/libdlm/Makefile
|
||
|
+++ libdlm-4.0.2/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
|