emersion / mrsh

A minimal POSIX shell
MIT License
489 stars 35 forks source link

configure cannot build out-of-tree #152

Open mirabilos opened 4 years ago

mirabilos commented 4 years ago
mkdir build
cd build
../mrsh/configure

… fails with…

Unable to specify exported symbols (is Linux supported?)

Trying to debug the hard-to-debug (comparatively) script, it turns out it expects the libmrsh.gnu.sym file in the cwd.

emersion commented 4 years ago

Even if the configure script worked, make would fail (because the Makefile is still in the source tree, it doesn't get copied over). Are out-of-tree builds something that is in general supported by make-based build systems?

mirabilos commented 4 years ago

Yes, e.g. GNU autoconf copies the Makefile (with substitutions) and everything else needed, and in general just points to the source directory.

emersion commented 4 years ago

I'm not talking about autotools, I'm talking about other software using raw Makefiles like we do.

mirabilos commented 4 years ago

Simon Ser dixit:

I'm not talking about autotools, I'm talking about other software using raw Makefiles like we do.

It’s not about the Makefile, it’s about the configure script.