diff options
author | midipix <writeonce@midipix.org> | 2021-06-15 14:12:02 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-15 14:12:02 +0000 |
commit | 2ae815391d70681e8940490ea141e8f16582b4bc (patch) | |
tree | bfe59a69b269e857662966aa4541ab834bf457c2 /configure | |
parent | f3e7b5d4a3fd7d34ea27995ff9611933d6dbbb98 (diff) | |
download | slibtool-2ae815391d70681e8940490ea141e8f16582b4bc.tar.bz2 slibtool-2ae815391d70681e8940490ea141e8f16582b4bc.tar.xz |
build system: configure: config_ccenv(): refined --sysroot related logic.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -846,15 +846,18 @@ config_ccenv() exit 2 fi - # add the library directory to the linker library path + # add the include and library directories to the compiler and linker search path if [ "$mb_cchost" = "$mb_native_cchost" ]; then + mb_cflags_last="$mb_cflags_last -I$mb_includedir" mb_ldflags_last="$mb_ldflags_last -L$mb_libdir" else case "$mb_libdir" in /*) + mb_ldflags_last="$mb_cflags_last -I$mb_sysroot/.$mb_includedir" mb_ldflags_last="$mb_ldflags_last -L$mb_sysroot/.$mb_libdir" ;; *) + mb_ldflags_last="$mb_cflags_last -I$mb_includedir" mb_ldflags_last="$mb_ldflags_last -L$mb_libdir" esac fi |