]> granicus.if.org Git - procps-ng/commitdiff
x86-64 sucks
authoralbert <>
Thu, 23 Oct 2003 03:41:58 +0000 (03:41 +0000)
committeralbert <>
Thu, 23 Oct 2003 03:41:58 +0000 (03:41 +0000)
Makefile
NEWS
README
procps.spec

index b9027e9b0201fafdb085c8ac7f444f32a9734a54..9df642ee188861889bb6fc84e3034a4e154416e7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,9 @@ ln_f     := ln -f
 ln_sf    := ln -sf
 install  := install -D --owner 0 --group 0
 
+# Lame x86-64 /lib64 and /usr/lib64 abomination:
+lib64    := lib$(shell [ -d /lib64 ] && echo 64)
+
 usr/bin                  := $(DESTDIR)/usr/bin/
 bin                      := $(DESTDIR)/bin/
 sbin                     := $(DESTDIR)/sbin/
@@ -39,8 +42,8 @@ man5                     := $(DESTDIR)/usr/share/man/man5/
 man8                     := $(DESTDIR)/usr/share/man/man8/
 etc/X11/applnk/Utilities := $(DESTDIR)/etc/X11/applnk/Utilities/
 usr/X11R6/bin            := $(DESTDIR)/usr/X11R6/bin/
-lib                      := $(DESTDIR)/lib/
-usr/lib                  := $(DESTDIR)/usr/lib/
+lib                      := $(DESTDIR)/$(lib64)/
+usr/lib                  := $(DESTDIR)/usr/$(lib64)/
 usr/include              := $(DESTDIR)/usr/include/
 
 #SKIP     := $(bin)kill $(man1)kill.1
diff --git a/NEWS b/NEWS
index a6a1910ada427b2e02e24a6fcd33b3ec7877e5f4..8e5fc8e6792e0f4db1e563f4770678a0373bda4a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+procps-3.1.14 --> procps-3.1.15
+
+install to /lib64 if it exists
+
 procps-3.1.13 --> procps-3.1.14
 
 top: displays on more genuine serial terminals
diff --git a/README b/README
index 25d27b8419d7fb80273c3a675eb8daed79f4e655..de5915614066c0ad78a7a944c6da1e4db5ca4603 100644 (file)
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
 COMPATIBILITY
 
     This code is intended for use with Linux 2.2.xx, 2.4.xx,
-    2.5.xx, and hopefully all future kernels. You should be
+    2.6.xx, and hopefully all future kernels. You should be
     running a system with libc 6, but libc 5 might work too.
 
 INSTALLATION
@@ -31,6 +31,12 @@ INSTALLATION
 
     make usr/bin=/tmp/fff/iii/ DESTDIR=/tmp/fff install="install -D" ldconfig=echo install
 
+    If cross-compiling, you might need to set lib64 to
+    either "lib" or "lib64", like one of these examples:
+
+    make lib64=lib CFLAGS="-O2 -m32"
+    make lib64=lib64 CC=x86_64-gcc
+
 BUG REPORTS
 
     Debian users should use the Debian bug tracking system.
index fb40be3073f4762643c46d5c80aac739e5586d45..cecc3349d982a0405557d2f27c76e205d92e1e15 100644 (file)
@@ -38,7 +38,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(0644,root,root,755)
 %doc NEWS BUGS TODO COPYING COPYING.LIB README.top README AUTHORS
-%attr(555,root,root) /lib/libproc.so*
+%attr(555,root,root) /lib*/libproc.so*
 %attr(555,root,root) /bin/*
 %attr(555,root,root) /sbin/*
 %attr(555,root,root) /usr/bin/*