[libtool] make install fails after an incremental build after a prefix change?

2015-12-29 Thread Kees-Jan Dijkzeul
Hi, On my buildserver, I'd like to do something along the lines of # build 1 ./configure --prefix=${HOME}/opt/1 && make && make install # build 2 (incrementally) ./configure --prefix=${HOME}/opt/2 && make && make install The second make install fails for some libraries, with the message

Re: [libtool] make install fails after an incremental build after a prefix change?

2015-12-29 Thread Bob Friesenhahn
On Tue, 29 Dec 2015, Kees-Jan Dijkzeul wrote: Hi, On my buildserver, I'd like to do something along the lines of # build 1 ./configure --prefix=${HOME}/opt/1 && make && make install # build 2 (incrementally) ./configure --prefix=${HOME}/opt/2 && make && make install The second make install

Re: [libtool] make install fails after an incremental build after a prefix change?

2015-12-29 Thread Gavin Smith
On 29 December 2015 at 19:52, Kees-Jan Dijkzeul wrote: > Either would obviously work, but kind of defeat the purpose of having > incremental builds, and unnecessarily load the buildserver. A > solution where I could do an incremental build after a configure > incantation

Re: Automake puts unwanted flags in compilation command

2015-12-29 Thread Gavin Smith
On 29 December 2015 at 21:42, Daniel Campoverde Carrión [Alx741] wrote: > Hello everyone, > > I'm trying to use autotools for the first time for a simple microntroller > project, one of my Makefile.am files contains this: > > >>PIC_DEVICE=18f4550 >>CC=sdcc >>LD=sdcc >>FLAGS=

Re: [libtool] make install fails after an incremental build after a prefix change?

2015-12-29 Thread Kees-Jan Dijkzeul
Hi Bob, Thanks for your reply On Tue, Dec 29, 2015 at 8:46 PM, Bob Friesenhahn wrote: > Try adding 'make clean' to your build steps. > > The best thing to do is to build outside of the source tree and use a > separate build directory for each configure incantation.

Automake puts unwanted flags in compilation command

2015-12-29 Thread Daniel Campoverde Carrión [Alx741]
Hello everyone, I'm trying to use autotools for the first time for a simple microntroller project, one of my Makefile.am files contains this: >PIC_DEVICE=18f4550 >CC=sdcc >LD=sdcc >FLAGS= --use-non-free -mpic16 -p$(PIC_DEVICE) >AM_CFLAGS = $(FLAGS) >AM_LDFLAGS= >override CFLAGS= >

Re: Automake puts unwanted flags in compilation command

2015-12-29 Thread Daniel Campoverde Carrión [Alx741]
On Tue, Dec 29, 2015 at 10:45:22PM +, Gavin Smith wrote: > > > >>PIC_DEVICE=18f4550 > >>CC=sdcc > >>LD=sdcc > >>FLAGS= --use-non-free -mpic16 -p$(PIC_DEVICE) > >>AM_CFLAGS = $(FLAGS) > >>AM_LDFLAGS= > >>override CFLAGS= > >> > >>COMPILE=$(CC) $(FLAGS) -c -o > >>LINK=$(LD) $(FLAGS) -o $@ > >> >

Re: ignore subdir-objects for one file

2015-12-29 Thread Andrew W. Nosenko
On Mon, Dec 28, 2015 at 5:29 PM, Basin Ilya wrote: > Hi. > I need to compile same source file multiple times with different CFLAGS > > When automake option "subdir-objects" becomes default, will it be > possible to put SOME object files to current directory instead of source

Re: ignore subdir-objects for one file

2015-12-29 Thread Basin Ilya
Cool, that really worked. On 29.12.2015 12:22, Andrew W. Nosenko wrote: > On Mon, Dec 28, 2015 at 5:29 PM, Basin Ilya > wrote: > > Hi. > I need to compile same source file multiple times with different CFLAGS > > When automake