This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/7828 configure.ac: Add --enable-sanitize option Change-Id: I1b5154a47bb2f66103ac254a0f422e8a80b2d3e0 --- M configure.ac 1 file changed, 17 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/28/7828/1 diff --git a/configure.ac b/configure.ac index c80f1cf..8271dbf 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,18 @@ PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0) PKG_CHECK_MODULES(LIBOSMOCTRL, libosmoctrl >= 0.10.0) +AC_ARG_ENABLE(sanitize, + [AS_HELP_STRING( + [--enable-sanitize], + [Compile with address sanitizer enabled], + )], + [sanitize=$enableval], [sanitize="no"]) +if test x"$sanitize" = x"yes" +then + CPPFLAGS="$CPPFLAGS -fsanitize=address -fsanitize=undefined" + LDFLAGS="$LDFLAGS -fsanitize=address -fsanitize=undefined" +fi + AC_ARG_WITH(usrp1, [ AS_HELP_STRING([--with-usrp1], [enable USRP1 gnuradio based transceiver]) @@ -176,6 +188,11 @@ AC_CHECK_HEADER([boost/config.hpp],[], [AC_MSG_ERROR([boost/config.hpp not found, install e.g. libboost-dev])]) +AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"]) +AC_MSG_RESULT([CFLAGS="$CFLAGS"]) +AC_MSG_RESULT([CXXFLAGS="$CXXFLAGS"]) +AC_MSG_RESULT([LDFLAGS="$LDFLAGS"]) + dnl Output files AC_CONFIG_FILES([\ Makefile \ -- To view, visit https://gerrit.osmocom.org/7828 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1b5154a47bb2f66103ac254a0f422e8a80b2d3e0 Gerrit-PatchSet: 1 Gerrit-Project: osmo-trx Gerrit-Branch: master Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>