summaryrefslogtreecommitdiff
path: root/devel/freebsd-gcc9/files/patch-gcc-configure
blob: 77263f82637879f71407c20324cbd261fd513fe4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- gcc/configure.orig	2019-11-29 16:01:46.850423000 -0800
+++ gcc/configure	2019-11-29 16:05:09.818243000 -0800
@@ -3673,7 +3673,9 @@ if test x${gcc_gxx_include_dir} = x; then
   fi
 elif test "${with_sysroot+set}" = set; then
   gcc_gxx_without_sysroot=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
-  if test "${gcc_gxx_without_sysroot}"; then
+  if test "${with_sysroot}" = "/"; then
+    gcc_gxx_include_dir_add_sysroot=1
+  elif test "${gcc_gxx_without_sysroot}"; then
     gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"
     gcc_gxx_include_dir_add_sysroot=1
   fi