Skip to content

Commit

Permalink
Issue #60: Build skupper-router image using LTO and with static proto…
Browse files Browse the repository at this point in the history
…n libs (#96)
  • Loading branch information
jiridanek committed Apr 9, 2022
1 parent e79ce3c commit fe3280e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ tar -zxf qpid-proton.tar.gz -C qpid-proton-src --strip-components 1
do_patch "patches/proton" qpid-proton-src

cd proton_build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_BINDINGS=python -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_PYTHON=ON -DSSL_IMPL=openssl $WORKING/qpid-proton-src/ \
&& make \
&& make DESTDIR=$WORKING/proton_install install \
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_LINKTIME_OPTIMIZATION=ON \
-DBUILD_TLS=ON -DSSL_IMPL=openssl -DBUILD_STATIC_LIBS=ON -DBUILD_BINDINGS=python -DSYSINSTALL_PYTHON=ON \
-DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr $WORKING/qpid-proton-src/ \
&& VERBOSE=1 make DESTDIR=$WORKING/proton_install install \
&& tar -z -C $WORKING/proton_install -cf /qpid-proton-image.tar.gz usr \
&& make install
&& VERBOSE=1 make install
cd $WORKING/build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUSE_LIBWEBSOCKETS=ON -DCMAKE_INSTALL_PREFIX=/usr $WORKING/ \
&& make \
&& make DESTDIR=$WORKING/staging/ install \
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
-DProton_USE_STATIC_LIBS=ON -DUSE_LIBWEBSOCKETS=ON -DUSE_LIBNGHTTP2=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_PREFIX=/usr $WORKING/ \
&& VERBOSE=1 make DESTDIR=$WORKING/staging/ install \
&& tar -z -C $WORKING/staging/ -cf /skupper-router-image.tar.gz usr etc

0 comments on commit fe3280e

Please sign in to comment.