This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: how to compile same source multiple times?
- From: David Mosberger-Tang <David dot Mosberger at acm dot org>
- To: tromey at redhat dot com
- Cc: David dot Mosberger at acm dot org, automake at gnu dot org
- Date: Mon, 25 Feb 2002 09:37:50 -0800
- Subject: Re: how to compile same source multiple times?
- References: <200202231904.g1NJ4Rh08672@panda.mostang.com><87k7t2g1a5.fsf@creche.redhat.com>
- Reply-to: David dot Mosberger at acm dot org
>>>>> On 24 Feb 2002 11:52:50 -0700, Tom Tromey <tromey@redhat.com> said:
>>>>> "David" == David Mosberger-Tang <David.Mosberger@acm.org> writes:
David> For example, I have a file called foo.c and I'd like to
David> compile it once with the normal options and once with -DBAR
David> defined. The resulting two objects would have to go into the
David> same library (foo.c will define different global symbols
David> depending on whether or not BAR is defined).
Tom> Interesting. There's no automatic way to do this.
Too bad. I guess I'll have to bite the bullet for now and statically
include the stub files.
Thanks for the help.
--david