From: Iain Buclaw <ibuclaw@gcc.gnu.org>
ChangeLog:
* config-ml.in: Treat GDC and GDCFLAGS like other compiler/flag
environment variables.
config/ChangeLog:
* multi.m4: Set GDC.
Cherry picked from GCC commit b4c522fabd0df7be08882d2207df8b2765026110
---
ChangeLog | 24 ++++++++++++++++++++++++
config-ml.in | 16 +++++++++++++++-
config/ChangeLog | 4 ++++
3 files changed, 43 insertions(+), 1 deletion(-)
@@ -1,3 +1,27 @@
+2018-10-28 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * Makefile.def (target_modules): Add libphobos.
+ (flags_to_pass): Add GDC, GDCFLAGS, GDC_FOR_TARGET and
+ GDCFLAGS_FOR_TARGET.
+ (dependencies): Make libphobos depend on libatomic, libbacktrace
+ configure, and zlib configure.
+ (language): Add language d.
+ * Makefile.in: Rebuild.
+ * Makefile.tpl (BUILD_EXPORTS): Add GDC and GDCFLAGS.
+ (HOST_EXPORTS): Add GDC.
+ (POSTSTAGE1_HOST_EXPORTS): Add GDC and GDC_FOR_BUILD.
+ (BASE_TARGET_EXPORTS): Add GDC.
+ (GDC_FOR_BUILD, GDC, GDCFLAGS): New variables.
+ (GDC_FOR_TARGET, GDC_FLAGS_FOR_TARGET): New variables.
+ (EXTRA_HOST_FLAGS): Add GDC.
+ (STAGE1_FLAGS_TO_PASS): Add GDC.
+ (EXTRA_TARGET_FLAGS): Add GDC and GDCFLAGS.
+ * config-ml.in: Treat GDC and GDCFLAGS like other compiler/flag
+ environment variables.
+ * configure: Rebuild.
+ * configure.ac: Add target-libphobos to target_libraries. Set and
+ substitute GDC_FOR_BUILD and GDC_FOR_TARGET.
+
2023-07-03 Nick Clifton <nickc@redhat.com>
2.41 Branch Point.
@@ -510,6 +510,7 @@ multi-do:
prefix="$(prefix)" \
exec_prefix="$(exec_prefix)" \
GOCFLAGS="$(GOCFLAGS) $${flags}" \
+ GDCFLAGS="$(GDCFLAGS) $${flags}" \
CXXFLAGS="$(CXXFLAGS) $${flags}" \
LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \
@@ -741,7 +742,7 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
break
fi
done
- ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags" F77="${F77_}$flags" GFORTRAN="${GFORTRAN_}$flags" GOC="${GOC_}$flags"'
+ ml_config_env='CC="${CC_}$flags" CXX="${CXX_}$flags" F77="${F77_}$flags" GFORTRAN="${GFORTRAN_}$flags" GOC="${GOC_}$flags" GDC="${GDC_}$flags"'
if [ "${with_target_subdir}" = "." ]; then
CC_=$CC' '
@@ -749,6 +750,7 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
F77_=$F77' '
GFORTRAN_=$GFORTRAN' '
GOC_=$GOC' '
+ GDC_=$GDC' '
else
# Create a regular expression that matches any string as long
# as ML_POPDIR.
@@ -813,6 +815,18 @@ if [ -n "${multidirs}" ] && [ -z "${ml_norecursion}" ]; then
esac
done
+ GDC_=
+ for arg in ${GDC}; do
+ case $arg in
+ -[BIL]"${ML_POPDIR}"/*)
+ GDC_="${GDC_}"`echo "X${arg}" | sed -n "s/X\\(-[BIL]${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X-[BIL]${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
+ "${ML_POPDIR}"/*)
+ GDC_="${GDC_}"`echo "X${arg}" | sed -n "s/X\\(${popdir_rx}\\).*/\\1/p"`/${ml_dir}`echo "X${arg}" | sed -n "s/X${popdir_rx}\\(.*\\)/\\1/p"`' ' ;;
+ *)
+ GDC_="${GDC_}${arg} " ;;
+ esac
+ done
+
if test "x${LD_LIBRARY_PATH+set}" = xset; then
LD_LIBRARY_PATH_=
for arg in `echo "$LD_LIBRARY_PATH" | tr ':' ' '`; do
@@ -1,3 +1,7 @@
+2018-10-28 Iain Buclaw <ibuclaw@gdcproject.org>
+
+ * multi.m4: Set GDC.
+
2022-12-31 Nick Clifton <nickc@redhat.com>
* 2.40 branch created.