File tree 4 files changed +37
-0
lines changed
4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ SCRIPTDIR=${BUILD_ROOT}/scripts
30
30
ZLIBDIR=/src/zlib
31
31
OPENSSLDIR=/src/openssl
32
32
NGHTTPDIR=/src/nghttp2
33
+ GDBDIR=/src/gdb
33
34
34
35
echo " BUILD_ROOT: $BUILD_ROOT "
35
36
echo " SRC: ${SRC:- undefined} "
@@ -46,6 +47,15 @@ export MAKEFLAGS+="-j$(nproc)"
46
47
# Make an install directory
47
48
export INSTALLDIR=/src/curl_install
48
49
50
+ # If necessary (i.e. this is inside the ossfuzz shell environment and
51
+ # you've set the environment variable) then download and install GDB.
52
+ # This installs to the default configure location.
53
+ if [[ ${INSTALLGDB:- } == " yes" ]]
54
+ then
55
+ # Install GDB
56
+ ${SCRIPTDIR} /handle_x.sh gdb ${GDBDIR} system || exit 1
57
+ fi
58
+
49
59
# Install zlib
50
60
${SCRIPTDIR} /handle_x.sh zlib ${ZLIBDIR} ${INSTALLDIR} || exit 1
51
61
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # If any commands fail, fail the script immediately.
4
+ set -ex
5
+
6
+ wget https://ftp.gnu.org/gnu/gdb/gdb-13.2.tar.xz -O /tmp/gdb.tar.gz
7
+ tar -xvf /tmp/gdb.tar.gz --directory /tmp
8
+
9
+ # Move the directory into the correct place
10
+ mv -v /tmp/gdb-* " $1 "
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # If any commands fail, fail the script immediately.
3
+ set -ex
4
+
5
+ export CFLAGS=
6
+ export CXXFLAGS=
7
+
8
+ SRCDIR=$1
9
+
10
+ pushd ${SRCDIR}
11
+
12
+ ./configure
13
+ make
14
+ make install
15
+
16
+ popd
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ apt-get install -y make \
8
8
autoconf \
9
9
automake \
10
10
libtool \
11
+ libgmp-dev \
11
12
libssl-dev \
12
13
zlib1g-dev \
13
14
pkg-config \
You can’t perform that action at this time.
0 commit comments