[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Statically compiled binaries not re-linked as expected.
From: |
Ralf Wildenhues |
Subject: |
Re: Statically compiled binaries not re-linked as expected. |
Date: |
Fri, 8 May 2009 19:22:24 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi Seb,
* Seb James wrote on Fri, May 08, 2009 at 09:54:27AM CEST:
> The Makefile.ams are written so that this builds a binary and a library:
>
> mainprog and libproject(.a, .so)
>
> If the project is configured with default options, then a change to code
> in libcodefiles.cpp will lead to a re-compilation of libcodefiles.cpp
> and mainprog.cpp.
>
> However, if I reconfigure like this:
>
> ./configure --enable-static --disable-shared
>
> Then make clean && make will generate a mainprog with libproject
> statically linked into the executable. So far so good.
>
> However, if I change libcodefiles.cpp and re-call make, libproject is
> recompiled, but the executable mainprog is not re-linked.
Please post both Makefile.am files.
Thanks,
Ralf