]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
SCRIPTS: build: enable symbols in AWS-LC builds
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 22 Jan 2026 14:25:24 +0000 (15:25 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 22 Jan 2026 14:25:24 +0000 (15:25 +0100)
The Release target of AWS-LC does not enable symbols. Which makes
debugging and using gdb difficult.

Change the build type to RelWithDebInfo.

scripts/build-ssl.sh

index 048188817c6d25bc90f7e81b2a52a4d1ffdabd4c..3b1ad539f170809e66c26d985b236f574cf6e775 100755 (executable)
@@ -156,7 +156,7 @@ build_aws_lc () {
            mkdir -p build
            cd build
            cmake -version
-           cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=1 -DDISABLE_GO=1 -DDISABLE_PERL=1 \
+           cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_SHARED_LIBS=1 -DDISABLE_GO=1 -DDISABLE_PERL=1 \
                  -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=${BUILDSSL_DESTDIR}/lib \
                  -DBUILD_TESTING=0 -DCMAKE_INSTALL_PREFIX=${BUILDSSL_DESTDIR} ..
            make -j$(nproc)
@@ -184,7 +184,7 @@ build_aws_lc_fips () {
            mkdir -p build
            cd build
            cmake -version
-           cmake -DCMAKE_BUILD_TYPE=Release -DFIPS=1 -DBUILD_SHARED_LIBS=1 \
+           cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DFIPS=1 -DBUILD_SHARED_LIBS=1 \
                  -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_INSTALL_RPATH=${BUILDSSL_DESTDIR}/lib \
                  -DBUILD_TESTING=0 -DCMAKE_INSTALL_PREFIX=${BUILDSSL_DESTDIR} ..
            make -j$(nproc)