Re: [Vala] Do not pass pure vala packages to pkg-config
- From: Raffaele Sandrini <raffaele sandrini ch>
- To: Mathias Hasselmann <mathias hasselmann gmx de>
- Cc: vala paldo org
- Subject: Re: [Vala] Do not pass pure vala packages to pkg-config
- Date: Tue, 14 Aug 2007 21:10:48 +0200
On Sat, 2007-08-11 at 09:46 +0200, Mathias Hasselmann wrote:
"valac --pkg=math -o test test.vala" fails because math.vala doesn't
have a corresponding pkg-config package. Solutions for this problem are:
1) move math.vala into glib.vala
2) special case math.vala in the compiler
3) check that all packages exist before asking pkg-config about flags
Attached patch implements the third approach.
This seems like a good idea, however compilation results in a linking
error since it needs -lm (this can be passed to the C compiler of
course). We have to see whether we introduce some other way than
pkg-config to gain knowledge about required dependencies.
So go on and commit this.
Raffaele
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]