Check for and use gcc's -pipe.

Speeds up configure and build by a couple of percent.  ok djm@
This commit is contained in:
Darren Tucker 2017-03-31 11:04:43 +11:00
parent 282cad2240
commit d9048861be
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int main(void) { return 0; }]])],
CFLAGS="$saved_CFLAGS"
if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
OSSH_CHECK_CFLAG_COMPILE([-pipe])
OSSH_CHECK_CFLAG_COMPILE([-Qunused-arguments])
OSSH_CHECK_CFLAG_COMPILE([-Wunknown-warning-option])
OSSH_CHECK_CFLAG_COMPILE([-Wall])