From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B24351393EA for ; Tue, 11 Mar 2014 04:53:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4376AE0942; Tue, 11 Mar 2014 04:53:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D43E8E0942 for ; Tue, 11 Mar 2014 04:53:57 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 06D9B33FBAF for ; Tue, 11 Mar 2014 04:53:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 49146188E9 for ; Tue, 11 Mar 2014 04:53:54 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1394512476.206a802baa29af093ca086a08f1d9aa5d9c91737.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 206a802baa29af093ca086a08f1d9aa5d9c91737 X-VCS-Branch: master Date: Tue, 11 Mar 2014 04:53:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1395d9a1-37ff-42f1-9eb8-fe8275f97964 X-Archives-Hash: 13a67f087d02792698ec7536ffae70b5 commit: 206a802baa29af093ca086a08f1d9aa5d9c91737 Author: Mike Frysinger gentoo org> AuthorDate: Tue Mar 11 04:34:36 2014 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Mar 11 04:34:36 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage-utils.git;a=commit;h=206a802b build: use -fsanitize=address when doing a debug build Will help track down memory errors nicely. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d202f54..79a19eb 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ CFLAGS ?= -O2 -g -pipe CFLAGS += -std=gnu99 CPPFLAGS ?= CPPFLAGS += -DENABLE_NLS=$(call istrue,$(NLS)) -#CFLAGS += -DEBUG -g +DBG_CFLAGS = -O0 -DEBUG -g3 -ggdb -fno-pie $(call check_gcc, -fsanitize=address) #CFLAGS += -Os -DOPTIMIZE_FOR_SIZE=2 -falign-functions=2 -falign-jumps=2 -falign-labels=2 -falign-loops=2 #LDFLAGS := -pie LIBADD += $(shell echo | $(CC) -dM -E - | grep -q ' __FreeBSD__' && echo '-lkvm') @@ -62,7 +62,7 @@ all: q @true debug: - $(MAKE) CFLAGS="$(CFLAGS) -O0 -DEBUG -g3 -ggdb -fno-pie" clean symlinks + $(MAKE) CFLAGS="$(CFLAGS) $(DBG_CFLAGS)" clean symlinks @-scanelf -o /dev/null -BXxz permsx q q: $(SRC) libq/*.c *.h libq/*.h