bash 4.4: `configure --enable-static-link --without-gnu-malloc` fails with `No rule to make target 'install-'`
When I try to configure and make install bash 4.4 as follows: $ configure --enable-static-link --without-gnu-malloc $ make install I get: ( cd examples/loadables && make DESTDIR= install ) make[1]: Entering directory '/tmp/tmp.I41FEP4JeE/build/examples/loadables' make[1]: *** No rule to make target 'install-', needed by 'install'. Stop. If I: $ cd examples/loadables $ make install I get: make[1]: *** No rule to make target 'install-', needed by 'install'. Stop. When I inspect the Makefile in examples/loadables/Makefile I see: install:install-$(SHOBJ_STATUS) I assume what is causing this is that $(SHOBJ_STATUS) is empty, and neither set to "supported" nor "unsupported". It isn't clear which is the correct value given my configure options, or what is causing SHOBJ_STATUS to be empty at this point in the build. Any ideas? Thanks, Andrew.
Re: bash 4.4: `configure --enable-static-link --without-gnu-malloc` fails with `No rule to make target 'install-'`
On Mon, Oct 3, 2016 at 10:57 AM, Chet Ramey wrote: > On 10/3/16 10:01 AM, Chet Ramey wrote: > > On 10/2/16 6:54 PM, Andrew Tomazos wrote: > >> When I try to configure and make install bash 4.4 as follows: > >> > >> $ configure --enable-static-link --without-gnu-malloc > >> $ make install > > > > What happens if you run `make install SHOBJ_STATUS=unsupported'? Does > > that at least complete successfully? Then I can see why it's not > > defaulting to `unsupported'. > > Try this patch (and rebuild configure using `autoconf') to force the > default to unsupported if we're not going to use dynamic loading. > > I have tested your patch and it works successfully. (Last night I worked around by hacking the Makefile, see the patch at the end of: http://stackoverflow.com/q/39822816/1131467 ) Let me know if you need anything else from me.