Forum: CFEngine Help
Subject: Re: Compiling 3.2.3 on hpux IA64
Author: Beto
Link to topic: https://cfengine.com/forum/read.php?3,24199,24200#msg-24200
This is what I use to compile static binaries on HPUX 11.31 IA using the HP
C/aC++ Developer's Bundle:
wilma:/home/root/cfengine-3.2.3# cat cfengine.src.install
#!/usr/bin/sh
#
# CFEngine and dependencies
BUILD_ROOT=/home/root
DEST_ROOT=/u06
CFE_VERSION=3.2.3
CFE_SRC=cfengine-${CFE_VERSION}.tar.gz
CFE_DIR=${BUILD_ROOT}/cfengine-${CFE_VERSION}
cd ${CFE_DIR}
./autogen.sh --prefix="${DEST_ROOT}/cfengine-${CFE_VERSION}" \
--disable-shared \
CFLAGS="-Agcc -O -I/usr/local/include" \
LDFLAGS="-L/usr/local/lib/hpux32"
[ $? -eq 0 ] || exit 1
for file in $(find . -name acinclude.m4)
do
sed -e "s|-mthreads||" $file > /tmp/acinclude.m4.$$
[ $? -eq 0 ] || exit 1
mv /tmp/acinclude.m4.$$ $file
[ $? -eq 0 ] || exit 1
done
gmake
[ $? -eq 0 ] || exit 1
gmake install
[ $? -eq 0 ] || exit 1
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine