From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1tHh-0006iU-0f for qemu-devel@nongnu.org; Sat, 11 Jan 2014 02:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1tHZ-0007CJ-OD for qemu-devel@nongnu.org; Sat, 11 Jan 2014 02:47:08 -0500 Received: from v220110690675601.yourvserver.net ([37.221.199.173]:46311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1tHZ-0007CA-I3 for qemu-devel@nongnu.org; Sat, 11 Jan 2014 02:47:01 -0500 Message-ID: <52D0F6E6.9090502@weilnetz.de> Date: Sat, 11 Jan 2014 08:46:46 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1389304508-10100-1-git-send-email-steven@uplinklabs.net> <52CF2561.7050105@redhat.com> <52CF2E2F.4060005@comstyle.com> <20140111023621.GA27157@amazon.com> In-Reply-To: <20140111023621.GA27157@amazon.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3] configure: add option to disable -fstack-protector flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Noonan, Steven" , Brad Smith Cc: Paolo Bonzini , Steven Noonan , qemu-devel@nongnu.org, Anthony Liguori Hi Steven, --disable-stack-protector would also be useful for platforms which make debugging of executables with stack protection difficult. When I must debug Windows executables, I always disable stack protection, because otherwise the stack back traces are unreadable. So, for MinGW it might be reasonable to set the default to no stack protection if --enable-debug is selected. This requires some modifications in your patch. # Don't set it to "yes" initially: stack_protector="" # Do the compile test if it is not "no": if test "$stack_protector" != "no"; then The usual logic is do nothing if the user says "no". Run the compile tests otherwise. Show an error message if the compile tests fail and the user said "yes". See the code which handles $pie for an example. Please send your next patch inline - this makes it easier to add comments. Best regards Stefan