diff options
author | midipix <writeonce@midipix.org> | 2021-06-15 14:12:02 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-15 14:15:04 +0000 |
commit | d0c81cfb2ebeaac02df390f07d28ef3506f11087 (patch) | |
tree | e01620ffd0a09a9f254bdf6757ebe01f589b8737 | |
parent | 732aa4b68e294d31d9764d40452d38e840485d3d (diff) | |
download | apimagic-d0c81cfb2ebeaac02df390f07d28ef3506f11087.tar.bz2 apimagic-d0c81cfb2ebeaac02df390f07d28ef3506f11087.tar.xz |
build system: configure: config_ccenv(): refined --sysroot related logic.
-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 |