|
Packit |
2997f0 |
#!/bin/bash
|
|
Packit |
2997f0 |
#
|
|
Packit |
2997f0 |
# Configure librdkafka for development
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
set -e
|
|
Packit |
2997f0 |
./configure --clean
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# enable pedantic
|
|
Packit |
2997f0 |
#export CFLAGS='-std=c99 -pedantic -Wshadow'
|
|
Packit |
2997f0 |
#export CXXFLAGS='-std=c++98 -pedantic'
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# enable FSAN
|
|
Packit |
2997f0 |
#FSAN="-fsanitize=address"
|
|
Packit |
2997f0 |
#export CPPFLAGS="$CPPFLAGS $FSAN"
|
|
Packit |
2997f0 |
#export LDFLAGS="$LDFLAGS $FSAN"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
OPTS=""
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# enable devel asserts
|
|
Packit |
2997f0 |
OPTS="$OPTS --enable-devel"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# disable optimizations
|
|
Packit |
2997f0 |
OPTS="$OPTS --disable-optimization"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# gprof
|
|
Packit |
2997f0 |
#OPTS="$OPTS --enable-profiling --disable-optimization"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# disable lz4
|
|
Packit |
2997f0 |
#OPTS="$OPTS --disable-lz4"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# disable cyrus-sasl
|
|
Packit |
2997f0 |
#OPTS="$OPTS --disable-sasl"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
# enable sharedptr debugging
|
|
Packit |
2997f0 |
#OPTS="$OPTS --enable-sharedptr-debug"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
#enable refcnt debugging
|
|
Packit |
2997f0 |
#OPTS="$OPTS --enable-refcnt-debug"
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
echo "Devel configuration options: $OPTS"
|
|
Packit |
2997f0 |
./configure $OPTS
|
|
Packit |
2997f0 |
|
|
Packit |
2997f0 |
make clean
|
|
Packit |
2997f0 |
make -j
|
|
Packit |
2997f0 |
(cd tests ; make -j build)
|