diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-10-25 14:52:12 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-10-25 14:52:12 -0400 |
commit | 80a45458e0d9b75d508110bd880d0ae0432b0356 (patch) | |
tree | 7669891463a02315532a92a34bd6322e74e5e991 | |
parent | c8cb6bcdf009e94c12c6e256b8e24a9bc5fdaf05 (diff) | |
download | musl-80a45458e0d9b75d508110bd880d0ae0432b0356.tar.gz musl-80a45458e0d9b75d508110bd880d0ae0432b0356.tar.xz musl-80a45458e0d9b75d508110bd880d0ae0432b0356.zip |
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.
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure index c1bcac7c..327734ae 100755 --- a/configure +++ b/configure @@ -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 |