mrsh icon indicating copy to clipboard operation
mrsh copied to clipboard

configure cannot build out-of-tree

Open mirabilos opened this issue 5 years ago • 4 comments

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.

mirabilos avatar Apr 04 '20 10:04 mirabilos

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?

emersion avatar Apr 04 '20 10:04 emersion

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

mirabilos avatar Apr 04 '20 10:04 mirabilos

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

emersion avatar Apr 04 '20 10:04 emersion

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.

mirabilos avatar Apr 04 '20 10:04 mirabilos