From 3b0356f3bd82e78dffd38ebdc206b555d00dde2f Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Feb 23 2018 09:52:59 +0000 Subject: intg: Build with optimisations and debug symbols We override CFLAGS for macro KCM_PEER_UID. Such change also remove standard CFLAGS (-O2 -g) and therefore it was not possible to debug processes in gdb unless environment variable CFLAGS was set. But we should test optimized code by default and let developers override default with environment variable CFLAGS and not vice versa. Reviewed-by: Jakub Hrozek Reviewed-by: Pavel Březina --- diff --git a/Makefile.am b/Makefile.am index d02f8fe..25e996d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3607,7 +3607,7 @@ intgcheck-prepare: --without-semanage \ --with-session-recording-shell=/bin/false \ $(INTGCHECK_CONFIGURE_FLAGS) \ - CFLAGS="$$CFLAGS -DKCM_PEER_UID=$$(id -u)"; \ + CFLAGS="-O2 -g $$CFLAGS -DKCM_PEER_UID=$$(id -u)"; \ $(MAKE) $(AM_MAKEFLAGS) ; \ : Force single-thread install to workaround concurrency issues; \ $(MAKE) $(AM_MAKEFLAGS) -j1 install; \