diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2018-04-26 19:27:54 +0800 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2018-04-27 09:39:19 +0800 |
commit | b69f95d6562b6a57c9be36da0cdf2a500adb94e9 (patch) | |
tree | a9d5e47eb00a34e97687945ec2c3a98cc6221ad2 /configure.ac | |
parent | 8e250c390a45f722387c1881ae5f99849a2d1e22 (diff) | |
download | libffi-b69f95d6562b6a57c9be36da0cdf2a500adb94e9.tar.gz |
build: fix subst toolexecdir, toolexeclibdir
On CentOS 7.4, configure script generated by autogen.sh will output the
following values when compiling GCC source code
toolexecdir='NONE/$(target_alias)'
toolexeclibdir='NONE/$(target_alias)/lib'
and cause build error
... -o libffi.la -rpath NONE/riscv64-bs-linux-gnu/lib ...
checking for shl_load in -ldld... libtool: link: only absolute run-paths are allowed
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 44a31ce..aec2f55 100644 --- a/configure.ac +++ b/configure.ac @@ -353,11 +353,11 @@ AC_ARG_ENABLE(multi-os-directory, if test "x$GCC" = "xyes"; then if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then - toolexecdir="${exec_prefix}"/'$(target_alias)' - toolexeclibdir="${toolexecdir}"/lib + toolexecdir='${exec_prefix}'/'$(target_alias)' + toolexeclibdir='${toolexecdir}'/lib else - toolexecdir="${libdir}"/gcc-lib/'$(target_alias)' - toolexeclibdir="${libdir}" + toolexecdir='${libdir}'/gcc-lib/'$(target_alias)' + toolexeclibdir='${libdir}' fi if test x"$enable_multi_os_directory" != x"no"; then multi_os_directory=`$CC $CFLAGS -print-multi-os-directory` @@ -368,7 +368,7 @@ if test "x$GCC" = "xyes"; then fi AC_SUBST(toolexecdir) else - toolexeclibdir="${libdir}" + toolexeclibdir='${libdir}' fi AC_SUBST(toolexeclibdir) |