summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-15 14:12:02 +0000
committermidipix <writeonce@midipix.org>2021-06-15 14:15:05 +0000
commit39e5013762351c1dabd507e18e18abfa60edc63d (patch)
treeb9db63735d0b3b2e17203e81384fde9ef3fc4c6a
parent828787831d0a90c2df2dcc88f789829a07585354 (diff)
downloadmmglue-39e5013762351c1dabd507e18e18abfa60edc63d.tar.bz2
mmglue-39e5013762351c1dabd507e18e18abfa60edc63d.tar.xz
build system: configure: config_ccenv(): refined --sysroot related logic.
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index eca4c0c..807d556 100755
--- a/configure
+++ b/configure
@@ -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