address sanitizer v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Fri, 18 Dec 2020 23:58:03 +0100
branchv_0
changeset 44d777d6c8024
parent 3 e238528eb19c
child 5 ef8f4023e32e
address sanitizer
Makefile
     1.1 --- a/Makefile	Fri Dec 18 23:28:16 2020 +0100
     1.2 +++ b/Makefile	Fri Dec 18 23:58:03 2020 +0100
     1.3 @@ -13,6 +13,8 @@
     1.4  # You should have received a copy of the GNU General Public License
     1.5  # along with this program. If not, see <http://www.gnu.org/licenses/>.
     1.6  
     1.7 +CXXFLAGS=-fno-omit-frame-pointer -fsanitize=address -g -lpthread $$(pkg-config --libs --cflags alsa)
     1.8 +
     1.9  all: build/djm-fix
    1.10  
    1.11  clean:
    1.12 @@ -25,4 +27,4 @@
    1.13  
    1.14  build/djm-fix: DJMFix.cpp DJMFix.h AlsaBridge.cpp AlsaBridge.h djm-fix.cpp
    1.15  	mkdir -p build
    1.16 -	g++ -o $@ DJMFix.cpp AlsaBridge.cpp djm-fix.cpp -lpthread $$(pkg-config --libs --cflags alsa)
    1.17 +	g++ -o $@ DJMFix.cpp AlsaBridge.cpp djm-fix.cpp $(CXXFLAGS)