PKGBUILDs/community/gdc/folders.diff
Johannes Pfau b6860d81f5 Adapt gdc PKGBUILD for ALARM
gdc is a component of gcc and the flags used to configure it
must be the same as the flags used to configure the system
gcc.
2014-02-23 18:50:30 +01:00

34 lines
1.2 KiB
Diff

diff --git a/libphobos/configure.ac b/libphobos/configure.ac
index 51d9b86..6ff04f1 100644
--- a/libphobos/configure.ac
+++ b/libphobos/configure.ac
@@ -239,9 +239,9 @@ else
fi
if test "${gdc_host}" != "${gdc_target}"; then
- gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/d
+ gdc_include_dir='${libdir}/gcc/${host_alias}'/${d_gcc_ver}/include/dlang
else
- gdc_include_dir='${prefix}'/include/d/${d_gcc_ver}
+ gdc_include_dir='${prefix}'/include/dlang/gdc
fi
AC_SUBST(gdc_include_dir)
AC_ARG_WITH([cross-host],
diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in
index 17e5c45..8a656b1 100644
--- a/gcc/d/Make-lang.in
+++ b/gcc/d/Make-lang.in
@@ -25,10 +25,10 @@ D_TARGET_INSTALL_NAME = $(target_alias)-$(shell echo gdc|sed '$(program_transfor
# This should be configured
ifeq ($(host), $(target))
- D_include_dir = `echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/d/$(version)
+ D_include_dir = `echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include/dlang/gdc
gcc_d_include_dir = $(libsubdir)/$(unlibsubdir)/..$(D_include_dir)
else
- gcc_d_include_dir = $(libsubdir)/include/d
+ gcc_d_include_dir = $(libsubdir)/include/dlang/gdc
endif