diff options
Diffstat (limited to 'ld/configure.in')
-rw-r--r-- | ld/configure.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ld/configure.in b/ld/configure.in index 69c83556b1..4358cbe0bb 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -34,7 +34,7 @@ AC_ARG_WITH(sysroot, [ --with-sysroot[=DIR] Search for usr/lib et al within DIR.], [ case ${with_sysroot} in - yes) AC_ERROR(with-sysroot must specify path) ;; + yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; *) TARGET_SYSTEM_ROOT=$with_sysroot ;; esac @@ -51,7 +51,8 @@ AC_ARG_WITH(sysroot, test_prefix=$exec_prefix fi case ${TARGET_SYSTEM_ROOT} in - ${test_prefix}*) + "${test_prefix}"|"${test_prefix}/"*|\ + '${exec_prefix}'|'${exec_prefix}/'*) t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" TARGET_SYSTEM_ROOT_DEFINE="$t" ;; |