MAKE=gmake
TAR=gtar
NPROC=gnproc
+ LDFLAGS=""
CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
;;
MAKE=gmake
TAR=gtar
NPROC=nproc
+ LDFLAGS=""
CFLAGS="-D_XOPEN_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__=1"
export PATH="$PATH:/usr/perl5/bin"
;;
NPROC="getconf _NPROCESSORS_ONLN"
BISON="bison"
YACC="$BISON -y"
+ LDFLAGS="-L/opt/local/lib"
+ CFLAGS="-I/opt/local/include"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
- export CFLAGS="-I/opt/local/include"
- export LDFLAGS="-L/opt/local/lib"
;;
*)
MAKE=make
TAR=tar
NPROC=nproc
+ LDFLAGS=""
CFLAGS=""
;;
esac
BUILD_PATH=$WORKSPACE/oot
mkdir -p "$BUILD_PATH"
cd "$BUILD_PATH"
- MAKE=$MAKE CFLAGS="$CFLAGS" "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
+ MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
;;
dist)
# Ignore level 1 of tar
$TAR xvf ./*.tar.* --strip 1
- MAKE=$MAKE CFLAGS="$CFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+ MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
;;
*)
echo "Standard in-tree build"
- MAKE=$MAKE CFLAGS="$CFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+ MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
;;
esac