Skip to content

Commit

Permalink
build: disable all shared libs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianherrera authored and morehouse committed Feb 7, 2020
1 parent 045fbc8 commit f700355
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion c-ares-CVE-2016-5180/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && ./buildconf && ./configure && make -j $JOBS)
(cd BUILD && ./buildconf && ./configure --disable-shared && make -j $JOBS)
}
get_git_revision https://github.com/c-ares/c-ares.git 51fbb479f7948fca2ace3ff34a15ff27e796afdd SRC
build_lib
Expand Down
1 change: 1 addition & 0 deletions common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ build_coverage () {
STANDALONE_TARGET=1
$CC -O2 -c $LIBFUZZER_SRC/standalone/StandaloneFuzzTargetMain.c
ar rc $LIB_FUZZING_ENGINE StandaloneFuzzTargetMain.o
rm *.o
}

# Build with user-defined main and hooks.
Expand Down
2 changes: 1 addition & 1 deletion freetype2-2017/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && ./autogen.sh && ./configure --with-harfbuzz=no --with-bzip2=no --with-png=no && make clean && make all -j $JOBS)
(cd BUILD && ./autogen.sh && ./configure --disable-shared --with-harfbuzz=no --with-bzip2=no --with-png=no && make clean && make all -j $JOBS)
}

get_git_revision git://git.sv.nongnu.org/freetype/freetype2.git cd02d359a6d0455e9d16b87bf9665961c4699538 SRC
Expand Down
2 changes: 1 addition & 1 deletion lcms-2017-03-21/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && ./autogen.sh && ./configure && make -j $JOBS)
(cd BUILD && ./autogen.sh && ./configure --disable-shared && make -j $JOBS)
}

get_git_revision https://github.com/mm2/Little-CMS.git f9d75ccef0b54c9f4167d95088d4727985133c52 SRC
Expand Down
2 changes: 1 addition & 1 deletion libarchive-2017-01-04/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD/build && ./autogen.sh && cd .. && ./configure --without-nettle && make -j $JOBS)
(cd BUILD/build && ./autogen.sh && cd .. && ./configure --disable-shared --without-nettle && make -j $JOBS)
}

get_git_revision https://github.com/libarchive/libarchive.git 51d7afd3644fdad725dd8faa7606b864fd125f88 SRC
Expand Down
2 changes: 1 addition & 1 deletion libjpeg-turbo-07-2017/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && autoreconf -fiv && ./configure && make -j $JOBS)
(cd BUILD && autoreconf -fiv && ./configure --disable-shared && make -j $JOBS)
}

get_git_revision https://github.com/libjpeg-turbo/libjpeg-turbo.git b0971e47d76fdb81270e93bbf11ff5558073350d SRC
Expand Down
2 changes: 1 addition & 1 deletion libpng-1.2.56/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
build_lib() {
rm -rf BUILD
cp -rf libpng-1.2.56 BUILD
(cd BUILD && ./configure && make -j $JOBS)
(cd BUILD && ./configure --disable-shared && make -j $JOBS)
}

build_lib || exit 1
Expand Down
2 changes: 1 addition & 1 deletion libxml2-v2.9.2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && ./autogen.sh && CCLD="$CXX $CXXFLAGS" ./configure && make -j $JOBS)
(cd BUILD && ./autogen.sh && CCLD="$CXX $CXXFLAGS" ./configure --disable-shared && make -j $JOBS)
}

get_git_tag https://gitlab.gnome.org/GNOME/libxml2.git v2.9.2 SRC
Expand Down
1 change: 1 addition & 0 deletions openthread-2018-02-27/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ build_lib() {
LIB_FUZZING_ENGINE="$LIB_FUZZING_ENGINE -fsanitize=address"
fi
(cd BUILD && ./bootstrap && ./configure \
--disable-shared \
--enable-fuzz-targets \
--enable-application-coap \
--enable-border-router \
Expand Down
2 changes: 1 addition & 1 deletion pcre2-10.00/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build_lib() {
cp -rf SRC BUILD
(cd BUILD &&
./autogen.sh &&
CCLD="$CXX $CXXFLAGS" ./configure --enable-never-backslash-C --with-match-limit=1000 --with-match-limit-recursion=1000 &&
CCLD="$CXX $CXXFLAGS" ./configure --disable-shared --enable-never-backslash-C --with-match-limit=1000 --with-match-limit-recursion=1000 &&
make -j
)
}
Expand Down
2 changes: 1 addition & 1 deletion proj4-2017-08-14/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && ./autogen.sh && ./configure && make clean && make -j $JOBS )
(cd BUILD && ./autogen.sh && ./configure --disable-shared && make clean && make -j $JOBS )
}

get_git_revision https://github.com/OSGeo/proj.4.git d00501750b210a73f9fb107ac97a683d4e3d8e7a SRC
Expand Down
2 changes: 1 addition & 1 deletion re2-2014-12-09/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CXXFLAGS="${CXXFLAGS} -std=gnu++98"
build_lib() {
rm -rf BUILD
cp -rf SRC BUILD
(cd BUILD && make clean && make -j $JOBS)
(cd BUILD && make clean && make -j $JOBS obj/libre2.a)
}

get_git_revision https://github.com/google/re2.git 499ef7eff7455ce9c9fae86111d4a77b6ac335de SRC
Expand Down

0 comments on commit f700355

Please sign in to comment.