[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c++ link order problems
From: |
Ralf Wildenhues |
Subject: |
Re: c++ link order problems |
Date: |
Tue, 28 Nov 2006 15:13:26 +0100 |
User-agent: |
Mutt/1.5.13 (2006-11-01) |
Hello Dan,
* Dan McMahill wrote on Tue, Nov 28, 2006 at 02:56:40PM CET:
>
> foo_SOURCES= src1.cc src4.cc src5.cc
> nodist_foo_SOURCES= src2.cc src3.cc
>
> and some extra suffix rules that specify how src2.cc and src3.cc are
> created (they are generated at build time).
>
> Now the problem is that the link order needs to be
>
> src1.o src2.o src3.o src4.o src5.o
Try this workaround:
nodist_foo_SOURCES = src1.cc src2.cc src3.cc src4.cc src5.cc
EXTRA_DIST = src1.cc src4.cc src5.cc
You could also factor (by whole names):
src1 = src1.cc
src2 = src2.cc src3.cc
src3 = src4.cc src5.cc
nodist_foo_SOURCES = $(src1) $(src2) $(src3)
EXTRA_DIST = $(src1) $(src3)
Just curious: what's the reason for the ordering constraint?
Cheers,
Ralf