bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Use -Wall if compiler is gcc


From: Shigio Yamaguchi
Subject: Re: [PATCH] Use -Wall if compiler is gcc
Date: Fri, 06 Jun 2003 00:35:34 +0900

> +dnl Use -Wall if we have gcc.
> +changequote(,)dnl
> +if test "x$GCC" = "xyes"; then
> +  case " $CFLAGS " in
> +  *[\ \      ]-Wall[\ \      ]*) ;;
> +  *) CFLAGS="$CFLAGS -Wall" ;;
> +  esac
> +fi
> +changequote([,])dnl

It seems that this method compels the -Wall option to the end user.
Instead, isn't it better to specify options at the execution of
configure command?

        ./configure CFLAGS="-g -O2 -Wall"

This method never compels a specific option to the user.
What do you think?
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]