[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make distclean breaks "later "configure && makes"", i.e., removes a

From: Michael Felt
Subject: Re: make distclean breaks "later "configure && makes"", i.e., removes a file in distro that a build needs (cannot process parse.y)
Date: Wed, 14 Feb 2018 19:33:22 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

I'll start all over again - using the following structure:

cd dist; wget distro..tar.gz

cd ../src; gzip -dc ../dist/distro.tar.gz | tar xf -

mkdir ../distro; cd ../distro

../src/distro/configure --arguments; make; make distclean

../src/distro/configure --arguments; make

As I have not been build OOT, maybe this fixes it - I forget why I am not building OOT. Maybe because I was not being handy when having to update a source tree with a patch.

IF above works - I'll say "my mistake", if not - might still be my mistake, but not one I can figure out.

On 2/14/2018 4:32 PM, Chet Ramey wrote:
There is code in the Makefile that attempts to detect when the build and
source directories are not the same, and removes y.tab.[ch] from the build
directory when they are not. The problem is that when you run
`./configure', the source directory gets set to `.' and the build directory
gets set to the absolute pathname.  Those don't compare as equal, and the
files get removed.

I could solve that problem with a short `same_dir' script, but maybe
there's an easier way.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]