[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] How to fix chicken compiler (csc) to fix options for

From: Christian Kellermann
Subject: Re: [Chicken-users] How to fix chicken compiler (csc) to fix options for the invoked C compiler?
Date: Fri, 05 Dec 2014 09:39:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Joe Python <address@hidden> writes:

> How to fix csc to generate the right options for static compilation of
> executables?
> Is there a file we can modify before compiling chicken itself to fix the
> compilation options for Oracle Solaris?
> I don't think this is in the Solaris Makefile.

Unfortunately not; this is added in csc.scm like this:

--8<---------------cut here---------------start------------->8---
(define (linker-options)
    (append linking-optimization-options link-options))
   (if (and static (not mingw) (not osx)) " -static" "") ) )
--8<---------------cut here---------------end--------------->8---

So, we either could make that a variable which is defined in the
Makefile or add another special case for solaris there.

I think I'd go with the former. As a quick fix for you, you could just
change that "-static" to the preferred option.

Kind regards,


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]