Re: [Chicken-users] Include path when compiling an Egg.

2017-10-13 Thread David Ireland
Thanks Peter. That solved my problem.


On Sat, Oct 14, 2017 at 8:11 AM, Peter Bex  wrote:

> On Sat, Oct 14, 2017 at 12:08:16AM +0200, Christian Kellermann wrote:
> > Yeah, sorry this is pretty inconsistent. There are a couple of eggs
> > that will add /usr/local as a prefix for the linker and preprocessor.
>
> As a rule, they shouldn't be doing that at all (unless as a side effect
> of calling pkg-configure); one might have several versions of a library
> installed, under different prefixes (a more recent or customized one
> might be installed under my homedir, for example).  You don't want an
> egg to go choosing the wrong one on its own accord.
>
> Cheers,
> Peter
>
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Include path when compiling an Egg.

2017-10-13 Thread Peter Bex
On Sat, Oct 14, 2017 at 12:08:16AM +0200, Christian Kellermann wrote:
> Yeah, sorry this is pretty inconsistent. There are a couple of eggs
> that will add /usr/local as a prefix for the linker and preprocessor.

As a rule, they shouldn't be doing that at all (unless as a side effect
of calling pkg-configure); one might have several versions of a library
installed, under different prefixes (a more recent or customized one
might be installed under my homedir, for example).  You don't want an
egg to go choosing the wrong one on its own accord.

Cheers,
Peter


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Include path when compiling an Egg.

2017-10-13 Thread Christian Kellermann
* Peter Bex  [171013 21:21]:
> On Fri, Oct 13, 2017 at 01:26:46PM +1000, David Ireland wrote:
> > Hi there,
> > 
> > This might be a trivial, but  several  Eggs (including mine) won't compile
> > on BSD based OS's. It seems include flags for external libraries aren't
> > being set when compiling the final C code.
> 
> Hi David,
> 
> I've used BSD in the past, and building an egg to look in the correct
> location on NetBSD was a matter of calling chicken-install with
> CSC_OPTIONS in the environment to set the C options, like
> 
> CSC_OPTIONS='-C -I/usr/include/blabla' chicken-install eggname

Yeah, sorry this is pretty inconsistent. There are a couple of eggs
that will add /usr/local as a prefix for the linker and preprocessor.
However adding  the CSC_OPTIONS yourself is the best way.

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Include path when compiling an Egg.

2017-10-13 Thread Peter Bex
On Fri, Oct 13, 2017 at 01:26:46PM +1000, David Ireland wrote:
> Hi there,
> 
> This might be a trivial, but  several  Eggs (including mine) won't compile
> on BSD based OS's. It seems include flags for external libraries aren't
> being set when compiling the final C code.

Hi David,

I've used BSD in the past, and building an egg to look in the correct
location on NetBSD was a matter of calling chicken-install with
CSC_OPTIONS in the environment to set the C options, like

CSC_OPTIONS='-C -I/usr/include/blabla' chicken-install eggname

Hope this helps!

Cheers,
Peter


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users