ataraxialinux / ataraxia

Simple and lightweight source-based multi-platform Linux distribution with musl libc.
https://ataraxialinux.org
GNU General Public License v3.0
282 stars 19 forks source link

No need to specify sysroot #153

Closed firasuke closed 4 years ago

firasuke commented 4 years ago

Using --with-sysroot alone is enough to let pkgconf's configure script figure out the sysroot from the compiler, and since you've already passed --with-sysroot="$ROOTFS" to the compiler (to test it, run $CC --print-sysroot and see if you get $ROOTFS), there's no need to specify sysroot here.

From pkgconf's configure scripts

  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the compiler's sysroot if not specified).
firasuke commented 4 years ago

Oh ok, closing then.