0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 17:52:54 +01:00

configure: Mirror the base CFLAGS and CXXFLAGS up to the philology checks.

This commit is contained in:
Jason Volk 2020-02-03 21:42:10 -08:00
parent 2eeee6aa48
commit fe9f4aa7eb

View file

@ -25,6 +25,7 @@ LT_LANG([C++])
dnl Note that AC_PROG_CXX will default CXXFLAGS to -O2 and -g; this just adds
dnl clutter and confusion. Setting it first prevents that.
CXXFLAGS="-pipe"
CFLAGS="-pipe"
AM_PROG_AS
AC_PROG_CXX
@ -69,9 +70,11 @@ dnl
AC_SUBST(CC)
AC_SUBST(CXX)
AC_SUBST(LD)
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(LD)
AC_SUBST(LDFLAGS)
AC_SUBST(LIBS)
@ -776,8 +779,12 @@ AM_COND_IF([CLANG],
])
dnl assume the warning flags
CPPFLAGS+="$CWARNS"
dnl mirror the base CFLAGS and CXXFLAGS up to this point
CFLAGS="$CXXFLAGS"
dnl ***************************************************************************
dnl
@ -821,6 +828,7 @@ AC_CHECK_SIZEOF(__int128_t)
AC_CHECK_SIZEOF(__uint128_t)
dnl -fsigned-char ensures 'char' is signed on all platforms
CFLAGS+=" -fsigned-char"
CXXFLAGS+=" -fsigned-char"
dnl
@ -2121,8 +2129,10 @@ echo "Configured ........................ $PACKAGE_NAME $PACKAGE_VERSION"
echo "Version ........................... $RB_VERSION"
echo "Configuration time ................ $RB_DATESTR"
echo "Host OS ........................... $host_os"
echo "Compiler .......................... $CXX"
echo "Compiler flags (CXXFLAGS) ......... $CXXFLAGS"
echo "C Compiler ........................ $CC"
echo "C Compiler flags (CFLAGS) ......... $CFLAGS"
echo "C++ Compiler ...................... $CXX"
echo "C++ Compiler flags (CXXFLAGS) ..... $CXXFLAGS"
echo "Linker ............................ $LD"
echo "Linker flags (LDFLAGS) ............ $LDFLAGS"
echo "Developer debug ................... $debug"