minexew / templeos-loader

User-space loader for TempleOS
4 stars 6 forks source link

Having libreadline-dev installed confuses physfs CMake #14

Open minexew opened 4 years ago

minexew commented 4 years ago

(this on Ubuntu 18.04)

physfs's CMakeLists detects readline installed, but it is invisible during compilation (since we shadow all system libs), leading to build errors

minexew commented 3 years ago

Recently, something changed and physfs started pulling in /usr/include due to this, which breaks everything since we need to stay within the Musl "sand box"

However, it seems that passing -DPHYSFS_BUILD_TEST=OFF is sufficient to work-around all of this mess, because then the CMakeLists logic doesn't kick in in the first place