You may also have to configure LIBS, because it also can't find the libglib in 
its' search path. I stumbled upon this before as well.

And then you also have to be sure that the path of the library is in the rpath 
of the binary.

-----Original Message-----
From: [email protected] on behalf of Ludovic Courtès
Sent: Thu 2/24/2011 5:14 PM
To: [email protected]
Subject: [Nix-dev] Re: GConf update problem
 
Hi,

Roelof Wobben <[email protected]> writes:

> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. 
> -DSYSGCONFDIR=\"/nix/store/xgb8hbrx41mv3s1fw43242cmm94fli3l-GConf-2.28.1/etc/gconf\"
>      -g -O2 -Wall -c gconf-defaults.c
> gconf-defaults.c:34:18: fatal error: glib.h: No such file or directory

I would try something like:

  preConfigure = ''
    export CPPFLAGS="-I${glib}/include"
  '';

$CPPFLAGS is honored both by 'configure' and by Automake-generated
makefiles (unless the package authors really did nasty things to
disallow that.)

Thanks,
Ludo'.

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to