mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-30 21:51:52 +00:00
Better detection of unsupported compiler options.
Should prevent "unsupported -Wl,-z,retpoline" warnings during linking. ok djm@
This commit is contained in:
parent
57379dbd01
commit
e1542a8079
15
aclocal.m4
vendored
15
aclocal.m4
vendored
@ -25,7 +25,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
]])],
|
]])],
|
||||||
[
|
[
|
||||||
if `grep -i "unrecognized option" conftest.err >/dev/null`
|
if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
|
||||||
then
|
then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
CFLAGS="$saved_CFLAGS"
|
CFLAGS="$saved_CFLAGS"
|
||||||
@ -63,7 +63,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
]])],
|
]])],
|
||||||
[
|
[
|
||||||
if `grep -i "unrecognized option" conftest.err >/dev/null`
|
if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
|
||||||
then
|
then
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
CFLAGS="$saved_CFLAGS"
|
CFLAGS="$saved_CFLAGS"
|
||||||
@ -100,8 +100,15 @@ int main(int argc, char **argv) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
]])],
|
]])],
|
||||||
[ AC_MSG_RESULT([yes])
|
[
|
||||||
LDFLAGS="$saved_LDFLAGS $_define_flag"],
|
if $ac_cv_path_EGREP -i "unrecognized option|warning.*ignored" conftest.err >/dev/null
|
||||||
|
then
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
LDFLAGS="$saved_LDFLAGS"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
LDFLAGS="$saved_LDFLAGS $_define_flag"
|
||||||
|
fi ],
|
||||||
[ AC_MSG_RESULT([no])
|
[ AC_MSG_RESULT([no])
|
||||||
LDFLAGS="$saved_LDFLAGS" ]
|
LDFLAGS="$saved_LDFLAGS" ]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user