]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Move check for unspecified CFLAGS in configure.ac
authorAntoine Verheijen <antoine@ualberta.ca>
Wed, 19 Jan 2011 22:57:25 +0000 (15:57 -0700)
committerDerrick Brashear <shadow@dementia.org>
Sun, 20 Feb 2011 13:57:25 +0000 (05:57 -0800)
commit0022bdd945a465bb6fe2ff1c821ff267563a60ad
tree39b432266f49d4efdb0d281256c967318f6ec5ba
parent5d0955ae914857c0fa64c6311f19b734ae59e05d
Move check for unspecified CFLAGS in configure.ac

configure.ac provides a check to see if the user has
specified CFLAGS and if not, it sets CFLAGS to a blank
(not NULL) string so that the resultant configure script
does not set '-g' and/or '-O2' by default. This check
occurs after AC_USE_SYSTEM_EXTENSIONS in the configure.ac
file. However, on at least some systems, such as OpenBSD,
AC_USE_SYSTEM_EXTENSIONS expands to include the code that
configure uses to set '-g -O2' so the check has no effect
and '-g' or '-O2' can not be turned off. This patch moves
the "CFLAGS specified" check so that it precedes the
AC_USE_SYSTEM_EXTENSIONS directive, in which case
everything works.

Reviewed-on: http://gerrit.openafs.org/3688
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 8b932375ecca3fefc1190a8d23d5c24ae538cfae)

Change-Id: Iec860d1ec5f1208e27e2602f10a83791a3481987
Reviewed-on: http://gerrit.openafs.org/4014
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
configure.ac