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 | 6a78ab96e2dc2dd0f81927fad4996e7368d7c5f2 (patch) | |
tree | 4505d112dc3421c625e95f277295278ef453d857 | |
parent | c1d5170da9a0611ff1d9899fd626f6e275e9e2c9 (diff) | |
download | bcparser-6a78ab96e2dc2dd0f81927fad4996e7368d7c5f2.tar.bz2 bcparser-6a78ab96e2dc2dd0f81927fad4996e7368d7c5f2.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 |