projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jjb: coverity: fix curl with scan.coverity.com broken ssl chain
[lttng-ci.git]
/
scripts
/
liburcu
/
build.sh
diff --git
a/scripts/liburcu/build.sh
b/scripts/liburcu/build.sh
index a3127d92c8281be20e2e6df95f43878c89cb6f71..7afb07f6e4e0d09587759b0ad592ae091fdf58e8 100755
(executable)
--- a/
scripts/liburcu/build.sh
+++ b/
scripts/liburcu/build.sh
@@
-84,44
+84,44
@@
rm -rf "$PREFIX" "$TMPDIR"
mkdir -p "$PREFIX" "$TMPDIR"
export TMPDIR
mkdir -p "$PREFIX" "$TMPDIR"
export TMPDIR
+export CFLAGS="-g -O2"
# Set platform variables
case "$arch" in
# Set platform variables
case "$arch" in
-sol
aris10
)
- MAKE=gmake
- TAR=gtar
- NPROC=gnproc
- LDFLAGS=""
-
CFLAGS="
"
+sol
10-i386
)
+
export
MAKE=gmake
+
export
TAR=gtar
+
export
NPROC=gnproc
+ export BISON=bison
+
export YACC="$BISON -y
"
export PATH="/opt/csw/bin:/usr/ccs/bin:$PATH"
export PATH="/opt/csw/bin:/usr/ccs/bin:$PATH"
+ export CPPFLAGS="-I/opt/csw/include"
+ export LDFLAGS="-L/opt/csw/lib -R/opt/csw/lib"
+ export PKG_CONFIG_PATH="/opt/csw/lib/pkgconfig"
;;
;;
-
-solaris11)
- MAKE=gmake
- TAR=gtar
- NPROC=nproc
- LDFLAGS=""
- CFLAGS=""
+sol11-i386)
+ export MAKE=gmake
+ export TAR=gtar
+ export NPROC=nproc
export PATH="$PATH:/usr/perl5/bin"
export PATH="$PATH:/usr/perl5/bin"
+ #export LD_ALTEXEC=/usr/sfw/bin/gld
+ #export LD=/usr/sfw/bin/gld
;;
;;
-
macosx)
macosx)
- MAKE=make
- TAR=tar
- NPROC="getconf _NPROCESSORS_ONLN"
- BISON="bison"
- YACC="$BISON -y"
- LDFLAGS="-L/opt/local/lib"
-
CFLAGS="
-I/opt/local/include"
+
export
MAKE=make
+
export
TAR=tar
+
export
NPROC="getconf _NPROCESSORS_ONLN"
+
export
BISON="bison"
+
export
YACC="$BISON -y"
+
export
LDFLAGS="-L/opt/local/lib"
+
export CFLAGS="$CFLAGS
-I/opt/local/include"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
;;
*)
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
;;
*)
- MAKE=make
- TAR=tar
- NPROC=nproc
- LDFLAGS=""
- CFLAGS=""
+ export MAKE=make
+ export TAR=tar
+ export NPROC=nproc
;;
esac
;;
esac
@@
-153,7
+153,12
@@
debug-rcu)
if vergte "$PACKAGE_VERSION" "0.10"; then
CONF_OPTS="--enable-rcu-debug"
else
if vergte "$PACKAGE_VERSION" "0.10"; then
CONF_OPTS="--enable-rcu-debug"
else
- CFLAGS="$CFLAGS -DDEBUG_RCU"
+ export CFLAGS="$CFLAGS -DDEBUG_RCU"
+ fi
+
+ echo "Enable iterator sanity validator"
+ if vergte "$PACKAGE_VERSION" "0.11"; then
+ CONF_OPTS+=" --enable-cds-lfht-iter-debug"
fi
;;
fi
;;
@@
-177,7
+182,7
@@
oot)
BUILD_PATH=$WORKSPACE/oot
mkdir -p "$BUILD_PATH"
cd "$BUILD_PATH"
BUILD_PATH=$WORKSPACE/oot
mkdir -p "$BUILD_PATH"
cd "$BUILD_PATH"
-
MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
"$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
+ "$SRCDIR/configure" --prefix="$PREFIX" $CONF_OPTS
;;
dist)
;;
dist)
@@
-185,7
+190,7
@@
dist)
BUILD_PATH=$(mktemp -d)
# Initial configure and generate tarball
BUILD_PATH=$(mktemp -d)
# Initial configure and generate tarball
-
MAKE=$MAKE
"$SRCDIR/configure"
+ "$SRCDIR/configure"
$MAKE dist
mkdir -p "$BUILD_PATH"
$MAKE dist
mkdir -p "$BUILD_PATH"
@@
-195,11
+200,11
@@
dist)
# Ignore level 1 of tar
$TAR xvf ./*.tar.* --strip 1
# Ignore level 1 of tar
$TAR xvf ./*.tar.* --strip 1
-
MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
"$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+ "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
;;
*)
echo "Standard in-tree build"
;;
*)
echo "Standard in-tree build"
-
MAKE=$MAKE CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
"$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
+ "$BUILD_PATH/configure" --prefix="$PREFIX" $CONF_OPTS
;;
esac
;;
esac
@@
-208,7
+213,7
@@
$MAKE -j "$($NPROC)" V=1
$MAKE install
# Run tests
$MAKE install
# Run tests
-$MAKE check
+$MAKE
--keep-going
check
# Only run regtest for 0.9 and up
if vergte "$PACKAGE_VERSION" "0.9"; then
$MAKE regtest
# Only run regtest for 0.9 and up
if vergte "$PACKAGE_VERSION" "0.9"; then
$MAKE regtest
This page took
0.025465 seconds
and
4
git commands to generate.