diff options
author | midipix <writeonce@midipix.org> | 2021-06-15 14:12:02 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-15 14:15:06 +0000 |
commit | eb19bc4747574624a9ad3948685c1966ee8d1a8a (patch) | |
tree | cd69d3be884566e093017baa9169a6c5b11f247a | |
parent | 19d010db35eed629af67efa453ec73a16bf94e6b (diff) | |
download | perk-eb19bc4747574624a9ad3948685c1966ee8d1a8a.tar.bz2 perk-eb19bc4747574624a9ad3948685c1966ee8d1a8a.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 |