mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
configure: Account CXXFLAGS in gcc-plugin.m4.
We now use a C++ compiler so that we need to process CXXFLAGS as well as CFLAGS in the gcc-plugin config fragment. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> config/ChangeLog: * gcc-plugin.m4: Save and process CXXFLAGS. gcc/ChangeLog: * configure: Regenerate. libcc1/ChangeLog: * configure: Regenerate.
This commit is contained in:
parent
308d688beb
commit
3e714cc55e
@ -91,14 +91,18 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
|
||||
# Check that we can build shared objects with -fPIC -shared
|
||||
saved_LDFLAGS="$LDFLAGS"
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
saved_CXXFLAGS="$CXXFLAGS"
|
||||
case "${host}" in
|
||||
*-*-darwin*)
|
||||
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
|
||||
;;
|
||||
*)
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared"
|
||||
;;
|
||||
esac
|
||||
@ -113,6 +117,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
|
||||
fi
|
||||
LDFLAGS="$saved_LDFLAGS"
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
CXXFLAGS="$saved_CXXFLAGS"
|
||||
|
||||
# If plugin support had been requested but not available, fail.
|
||||
if test x"$enable_plugin" = x"no" ; then
|
||||
|
5
gcc/configure
vendored
5
gcc/configure
vendored
@ -32038,14 +32038,18 @@ fi
|
||||
# Check that we can build shared objects with -fPIC -shared
|
||||
saved_LDFLAGS="$LDFLAGS"
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
saved_CXXFLAGS="$CXXFLAGS"
|
||||
case "${host}" in
|
||||
*-*-darwin*)
|
||||
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
|
||||
;;
|
||||
*)
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared"
|
||||
;;
|
||||
esac
|
||||
@ -32077,6 +32081,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||
fi
|
||||
LDFLAGS="$saved_LDFLAGS"
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
CXXFLAGS="$saved_CXXFLAGS"
|
||||
|
||||
# If plugin support had been requested but not available, fail.
|
||||
if test x"$enable_plugin" = x"no" ; then
|
||||
|
5
libcc1/configure
vendored
5
libcc1/configure
vendored
@ -15141,14 +15141,18 @@ fi
|
||||
# Check that we can build shared objects with -fPIC -shared
|
||||
saved_LDFLAGS="$LDFLAGS"
|
||||
saved_CFLAGS="$CFLAGS"
|
||||
saved_CXXFLAGS="$CXXFLAGS"
|
||||
case "${host}" in
|
||||
*-*-darwin*)
|
||||
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS=`echo $CXXFLAGS | sed s/-mdynamic-no-pic//g`
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
|
||||
;;
|
||||
*)
|
||||
CFLAGS="$CFLAGS -fPIC"
|
||||
CXXFLAGS="$CXXFLAGS -fPIC"
|
||||
LDFLAGS="$LDFLAGS -fPIC -shared"
|
||||
;;
|
||||
esac
|
||||
@ -15180,6 +15184,7 @@ rm -f core conftest.err conftest.$ac_objext \
|
||||
fi
|
||||
LDFLAGS="$saved_LDFLAGS"
|
||||
CFLAGS="$saved_CFLAGS"
|
||||
CXXFLAGS="$saved_CXXFLAGS"
|
||||
|
||||
# If plugin support had been requested but not available, fail.
|
||||
if test x"$enable_plugin" = x"no" ; then
|
||||
|
Loading…
Reference in New Issue
Block a user