mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
configure: Don't let autoconf pick our CFLAGS
If the user hasn't specified CFLAGS on the command line to
./configure, then autoconf will set them to -g -O2 if the compiler
supports those options.
For compatibility with what OpenAFS has always done, and to let us
manually set optimisation and debugging flags later, disable this
behaviour.
Reviewed-on: http://gerrit.openafs.org/2895
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit b1f747c1f1
)
Change-Id: Id35b288a56c8946a34b234eac1e899898d29ae65
Reviewed-on: http://gerrit.openafs.org/4003
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
9a5b168f75
commit
7c6441d435
@ -14,7 +14,10 @@ AC_SUBST(MACOS_VERSION)
|
|||||||
AC_SUBST(LINUX_PKGVER)
|
AC_SUBST(LINUX_PKGVER)
|
||||||
AC_SUBST(LINUX_PKGREL)
|
AC_SUBST(LINUX_PKGREL)
|
||||||
|
|
||||||
|
dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
|
||||||
|
AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
||||||
OPENAFS_CONFIGURE_COMMON
|
OPENAFS_CONFIGURE_COMMON
|
||||||
|
|
||||||
AC_OUTPUT( \
|
AC_OUTPUT( \
|
||||||
|
@ -23,7 +23,11 @@ AC_SUBST(LINUX_PKGREL)
|
|||||||
AC_SUBST(DEB_PKGVER)
|
AC_SUBST(DEB_PKGVER)
|
||||||
|
|
||||||
AC_USE_SYSTEM_EXTENSIONS
|
AC_USE_SYSTEM_EXTENSIONS
|
||||||
|
|
||||||
|
dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
|
||||||
|
AS_IF([test -z "$CFLAGS"], [CFLAGS=" "], [])
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
|
||||||
AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
|
AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
|
||||||
AC_SUBST([PATH_CPP])
|
AC_SUBST([PATH_CPP])
|
||||||
OPENAFS_CONFIGURE_COMMON
|
OPENAFS_CONFIGURE_COMMON
|
||||||
|
Loading…
Reference in New Issue
Block a user