-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.sh
executable file
·57 lines (56 loc) · 2.5 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash -eux
(
#export CFLAGS="-O0 -g3"
cd "$HOME/src/gpdb$GP_MAJOR"
git submodule update --init --recursive
CONFIGURE_FLAGS=
if [[ "$GP_MAJOR" == "5c" ]]; then
sudo rpm -i --replacepkgs https://ci.arenadata.io/artifactory/ADB/6.7.1_arenadata4/centos/7/community/x86_64/sigar-1.6.5-163.el7.x86_64.rpm
sudo rpm -i --replacepkgs https://ci.arenadata.io/artifactory/ADB/6.7.1_arenadata4/centos/7/community/x86_64/sigar-headers-1.6.5-163.el7.x86_64.rpm
# CONFIGURE_FLAGS="--with-gssapi --enable-debug --enable-depend --enable-cassert --with-libraries=bin_orca/lib --with-includes=bin_orca/include"
# CONFIGURE_FLAGS="--with-libraries=$HOME/.local$GP_MAJOR/lib"
CONFIGURE_FLAGS="--with-libraries=$GPHOME/lib --with-includes=$GPHOME/include"
export LD_LIBRARY_PATH="$GPHOME/lib"
#elif [ "$GP_MAJOR" -eq "6" ]; then
# sudo rpm -i --replacepkgs https://downloads.adsw.io/ADB/6.22.0_arenadata38/centos/7/community/x86_64/sigar-1.6.5-1056.git2932df5.el7.x86_64.rpm
# sudo rpm -i --replacepkgs http://downloads.adsw.io/ADB/6.22.0_arenadata38/centos/7/community/x86_64/sigar-headers-1.6.5-1056.git2932df5.el7.x86_64.rpm
fi
#export CONFIGURE_FLAGS="--enable-debug-extensions --with-gssapi --enable-cassert --enable-debug --enable-depend"
#source "$HOME/src/gpdb$GP_MAJOR/concourse/scripts/common.bash"
#export enable_debug_extensions=set
# LDFLAGS="-Wl,--enable-new-dtags -Wl,-rpath,\$/../lib" \
# CFLAGS="-O0 -ggdb -g3 -fno-omit-frame-pointer -fno-pie -no-pie -Wclobbered" \
# CXXFLAGS="-DGPOS_DEBUG -O0 -ggdb -g3 -fno-omit-frame-pointer -fno-pie -no-pie -Wclobbered"
export CFLAGS="-O0 -ggdb -g3 -fno-omit-frame-pointer -fno-pie -no-pie -Wclobbered"
#export CFLAGS="-O0 -ggdb -g3 -fno-omit-frame-pointer -fno-pie -no-pie -Wclobbered -DEXTRA_DYNAMIC_MEMORY_DEBUG"
export CXXFLAGS="-DGPOS_DEBUG -O0 -ggdb -g3 -fno-omit-frame-pointer -fno-pie -no-pie -Wclobbered"
./configure \
--disable-rpath \
--enable-cassert \
--enable-debug \
--enable-debug-extensions \
--enable-depend \
--enable-gpcloud \
--enable-gpfdist \
--enable-gpperfmon \
--enable-ic-proxy \
--enable-mapreduce \
--enable-orafce \
--enable-orca \
--enable-tap-tests \
--prefix=$GPHOME \
--with-gssapi \
--with-gssapi \
--with-ldap \
--with-libxml \
--with-libxslt \
--with-llvm \
--with-openssl \
--with-pam \
--with-perl \
--with-python \
--with-pythonsrc-ext \
--with-uuid=e2fs \
$CONFIGURE_FLAGS
) 2>&1 | tee "$HOME/config.log"
# --with-wal-segsize=1 \