diff options
author | Guido Vranken <guidovranken@users.noreply.github.com> | 2020-12-27 18:34:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 09:34:31 -0800 |
commit | 8b6b21e39137f96b6587f8866a1c66adf49c3cfc (patch) | |
tree | 230d5418cc1e762341c862e5f772000ee8ca1aae /projects/wolfssl | |
parent | 42d228bb9576a7ac548d70cef387fcec91f3e8e3 (diff) | |
download | oss-fuzz-8b6b21e39137f96b6587f8866a1c66adf49c3cfc.tar.gz |
[wolfssl] Enable i386 builds (#4894)
Diffstat (limited to 'projects/wolfssl')
-rwxr-xr-x | projects/wolfssl/build.sh | 33 | ||||
-rw-r--r-- | projects/wolfssl/project.yaml | 3 |
2 files changed, 21 insertions, 15 deletions
diff --git a/projects/wolfssl/build.sh b/projects/wolfssl/build.sh index a277923d5..e6cb46e28 100755 --- a/projects/wolfssl/build.sh +++ b/projects/wolfssl/build.sh @@ -95,22 +95,25 @@ then OSS_FUZZ_BUILD=1 SRC="$NEW_SRC" $NEW_SRC/build.sh fi -cd $SRC/wolfssl +if [[ $CFLAGS != *-m32* ]] +then + cd $SRC/wolfssl -# target_dir determined by Dockerfile -target_dir="$SRC/fuzz-targets" + # target_dir determined by Dockerfile + target_dir="$SRC/fuzz-targets" -# build wolfssl -./autogen.sh -./configure --enable-static --disable-shared --prefix=/usr CC="clang" -make -j "$(nproc)" all -make install + # build wolfssl + ./autogen.sh + ./configure --enable-static --disable-shared --prefix=/usr CC="clang" + make -j "$(nproc)" all + make install -# put linker arguments into the environment, appending to any existing ones -export LDFLAGS="${LDFLAGS-""}" -export LDLIBS="${LDLIBS-""} -lwolfssl $LIB_FUZZING_ENGINE" + # put linker arguments into the environment, appending to any existing ones + export LDFLAGS="${LDFLAGS-""}" + export LDLIBS="${LDLIBS-""} -lwolfssl $LIB_FUZZING_ENGINE" -# make and export targets to $OUT; environment overridding internal variables -cd "${target_dir}" -make -e all -make -e export prefix="$OUT" + # make and export targets to $OUT; environment overridding internal variables + cd "${target_dir}" + make -e all + make -e export prefix="$OUT" +fi diff --git a/projects/wolfssl/project.yaml b/projects/wolfssl/project.yaml index c72371946..547a09845 100644 --- a/projects/wolfssl/project.yaml +++ b/projects/wolfssl/project.yaml @@ -21,4 +21,7 @@ sanitizers: experimental: True - undefined - dataflow +architectures: + - x86_64 + - i386 main_repo: 'https://github.com/wolfssl/wolfssl' |