[Clc-crux64] linux-PAM 32 & VMware GSX Server
David M. Strang
dstrang at shellpower.net
Thu Nov 10 18:30:52 UTC 2005
Just for the sake of comleteness, and in case anyone else has the same
problem -- here is my Pkgfile & patch file:
-- begin pkgfile --
# $Id: Pkgfile,v 1.1.1.1 2005/11/10 13:01:42 crux Exp $
name=linux-pam32
version=0.81
release=1
source=(http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-$version.tar.gz
Make.Rules.patch)
build() {
export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
export CFLAGS="-m32 -O2 -march=i686 -pipe"
export CXXFLAGS="-m32 -O2 -march=i686 -pipe"
export LDFLAGS="-m32 -L/usr/lib32 $LDFLAGS"
cd Linux-PAM-$version
./configure --prefix=/usr --libdir=/usr/lib32 --includedir=/usr/include32
--enable-fakeroot="$PKG"
patch < ../Make.Rules.patch
make
make install
}
-- end pkgfile --
-- begin patch --
--- Make.Rules 2005-11-10 13:27:16.000000000 -0500
+++ Make.Rules.fix 2005-11-10 13:27:45.000000000 -0500
@@ -91,15 +91,15 @@
SECUREDIR=/usr/lib32/security
SCONFIGD=${prefix}/etc/security
SUPLEMENTED=${exec_prefix}/sbin
-INCLUDED=/usr/include/security
+INCLUDED=/usr/include32/security
CRACKLIB_DICTPATH=
# generic build setup
OS=linux
-CC=gcc
+CC=gcc -m32
CFLAGS=$(WARNINGS) -D$(OS) -m32 -O2 -march=i686 -pipe $(OS_CFLAGS)
$(HEADER_DIRS)
LDFLAGS=-m32 -L/usr/lib32 -L/usr/lib32
-LD=gcc
+LD=gcc -m32
LD_D=gcc -shared -m32 -L/usr/lib32 -L/usr/lib32
LD_L=gcc -shared -m32 -L/usr/lib32 -L/usr/lib32
MV=@MV@
-- end patch --
This appears to work (builds, and compiles, and installs!)
-- David M. Strang
More information about the crux64
mailing list