configure: test not just compiling but linking with -march/-mtune
pcc wrongly passes any option beginning with -m to the linker, and will break at link time if these options were added to CFLAGS. testing linking lets us catch this at configure time and skip them.
This commit is contained in:
parent
c8cb6bcdf0
commit
80a45458e0
1 changed files with 2 additions and 2 deletions
4
configure
vendored
4
configure
vendored
|
|
@ -269,8 +269,8 @@ tryflag CFLAGS_AUTO -falign-jumps=1
|
|||
# work anyway (issues with atomic ops).
|
||||
#
|
||||
if test "$ARCH" = "i386" ; then
|
||||
fnmatch '-march=*|*\ -march=*' "$CFLAGS" || tryflag CFLAGS_AUTO -march=i486
|
||||
fnmatch '-mtune=*|*\ -mtune=*' "$CFLAGS" || tryflag CFLAGS_AUTO -mtune=generic
|
||||
fnmatch '-march=*|*\ -march=*' "$CFLAGS" || tryldflag CFLAGS_AUTO -march=i486
|
||||
fnmatch '-mtune=*|*\ -mtune=*' "$CFLAGS" || tryldflag CFLAGS_AUTO -mtune=generic
|
||||
fi
|
||||
|
||||
if test "x$warnings" = xyes ; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue