Permalink
Browse files

updated build scripts for EA systems

  • Loading branch information...
dsikich committed May 31, 2017
1 parent 4fcbe3d commit be89be5cfc7cf5e478c620cd4b27f58e08a0109c
Showing with 43 additions and 11 deletions.
  1. +14 −3 buildme
  2. +17 −4 buildme_autotools
  3. +12 −4 buildme_dependencies
View
17 buildme
@@ -7,9 +7,19 @@ set -x
topdir=`pwd`
installdir=$topdir/install
export PATH="${topdir}/autotools/install/bin:$PATH"
# if EA is set to true then add configure option
EA=false
build_type=""
CC=mpicc
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
CC=mpigcc
export CXX=mpig++
fi
./autogen.sh
rm -rf build
@@ -20,13 +30,14 @@ export PKG_CONFIG_PATH="${installdir}/lib/pkgconfig"
# TODO: avoid this step
# necessary so configure test of dtcmp links with MPI
export CC=mpicc
export CC=${CC}
# hack to get things to build after common library
export CFLAGS="-g -O0 -I${topdir}/src/common -DDCOPY_USE_XATTRS"
export LDFLAGS="-Wl,-rpath,${topdir}/install/lib -L${topdir}/install/lib -lcircle"
../configure \
../configure --build=${build_type} \
--enable-lustre \
--enable-experimental \
--prefix=$installdir \
View
@@ -4,6 +4,14 @@ set -x
topdir=`pwd`
# if EA is set to true then add configure option
EA=false
build_type=""
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
fi
## create directory to download and build autotools
mkdir autotools
pushd autotools
@@ -21,7 +29,8 @@ pushd autotools
rm -rf autoconf-2.69
tar -zxf autoconf-2.69.tar.gz
pushd autoconf-2.69
./configure --prefix=$toolsinstalldir && \
./configure --build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
@@ -37,7 +46,8 @@ pushd autotools
rm -rf automake-1.13
tar -zxf automake-1.13.tar.gz
pushd automake-1.13
./configure --prefix=$toolsinstalldir && \
./configure --build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
@@ -53,7 +63,8 @@ pushd autotools
rm -rf libtool-2.4
tar -zxf libtool-2.4.tar.gz
pushd libtool-2.4
./configure --prefix=$toolsinstalldir && \
./configure --build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
@@ -69,7 +80,9 @@ pushd autotools
rm -rf pkg-config-0.28
tar -zxf pkg-config-0.28.tar.gz
pushd pkg-config-0.28
./configure --prefix=$toolsinstalldir && \
./configure --with-internal-glib \
--build=${build_type} \
--prefix=$toolsinstalldir && \
make && \
make install
if [ $? -ne 0 ]; then
View
@@ -28,6 +28,14 @@ OPT="-g -O0"
installdir=`pwd`/install
# if EA is set to true then add configure option
EA=false
build_type=""
if $EA ; then
# build line option required if building for EA systems
build_type="powerpc64le-redhat-linux-gnu"
fi
mkdir -p deps
cd deps
@@ -57,7 +65,7 @@ rm -rf ${libcircle}
tar -zxf ${libcircle}.tar.gz
pushd ${libcircle}
export CFLAGS=${OPT}
./configure \
./configure --build=${build_type} \
--prefix=$installdir \
--disable-silent-rules && \
make VERBOSE=1 && \
@@ -72,7 +80,7 @@ rm -rf ${lwgrp}
tar -zxf ${lwgrp}.tar.gz
pushd ${lwgrp}
export CFLAGS=${OPT}
./configure \
./configure --build=${build_type} \
--prefix=${installdir} \
--disable-silent-rules && \
make && \
@@ -87,7 +95,7 @@ rm -rf ${dtcmp}
tar -zxf ${dtcmp}.tar.gz
pushd ${dtcmp}
export CFLAGS=${OPT}
./configure \
./configure --build=${build_type} \
--prefix=${installdir} \
--disable-silent-rules \
--with-lwgrp=${installdir} && \
@@ -103,7 +111,7 @@ rm -rf ${libarchive}
tar zxvf ${libarchive}.tar.gz
pushd ${libarchive}
export CFLAGS=${OPT}
./configure \
./configure --build=${build_type} \
--prefix=${installdir} && \
make && \
make install

0 comments on commit be89be5

Please sign in to comment.