chicken-janitors
[Top][All Lists]
Advanced

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

Re: #1655: csc: when .c files are supplied and -c is given, the -o optio


From: Chicken Trac
Subject: Re: #1655: csc: when .c files are supplied and -c is given, the -o option has no effect
Date: Sun, 17 Nov 2019 12:13:59 -0000

#1655: csc: when .c files are supplied and -c is given, the -o option has no
effect
-----------------------------------+------------------------------
            Reporter:  kristianlm  |      Owner:  felix winkelmann
                Type:  defect      |     Status:  assigned
            Priority:  major       |  Milestone:  5.2
           Component:  core tools  |    Version:  5.1.0
          Resolution:              |   Keywords:
Estimated difficulty:  easy        |
-----------------------------------+------------------------------

Comment (by kristianlm):

 Good point. I don't know what I want, other than tweetnacl to cross-
 compile properly. In there, you have:

 {{{
 klm@kth /tmp ➤ chicken-install -r tweetnacl
 tweetnacl located at /home/klm/.cache/chicken-install/tweetnacl
 klm@kth /tmp ➤ cd /home/klm/.cache/chicken-install/tweetnacl/
 klm@kth ~/.c/c/tweetnacl ➤ cat build-tweetnacl
 #!/bin/sh -e
 "$CHICKEN_CSC" -O2 -d1 -C "$CFLAGS" -L "$LDFLAGS" tweetnacl.impl.c "$@"
 }}}

 When cross compiling this egg, the {{{"$@"}}} contains a {{{-o
 'tweetnacl.o.target'}}} so that is where this situation is happening.

 Is there now a way to specify C sources in the {{{.egg}}} file? If so,
 that is probably  the correct way to fix this. The only reason Thomas is
 using a custom build script is to compile the C source file in there.

 Otherwise, perhaps a sensible solution is to say that each {{{-o}}}
 applies to the first source-file preceding it or something like that?

-- 
Ticket URL: <https://bugs.call-cc.org/ticket/1655#comment:4>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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