Issue in detection of assembler support for --noexecstack flag

Rahul Chaudhry rahulchaudhry at
Wed Feb 24 17:54:16 UTC 2016


I'm reporting a configure issue and attaching a patch to fix it.
Apologies if this is not the right forum for it (and please point to
the proper channel if that's the case).

We're hitting an issue where configure incorrectly determines that the
assembler does not support the "--noexecstack" flag.

The problem is with how the script tries to detect support for this
flag. During configure, the assembler command fails with:
  conftest.s:8:8: error: file number already allocated

According to acinclude.m4, the macro for this was adapted from one
found in glibc-2.3.5.
A similar issue was reported for glibc:
This was fixed in glibc on 15 May 2008:;a=commitdiff;h=215a87451d1fd623fd2699fa57f16f8ab6f6a2f3

The fix is to use $ASMFLAGS (instead of $CFLAGS) when invoking the assembler.
The attached patch applies the fix to the macro in acinclude.m4

Please take a look,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp.patch
Type: text/x-patch
Size: 514 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list