chicken-users
[Top][All Lists]
Advanced

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

Re: Static compile using csm question; how to add linked extension?


From: felix . winkelmann
Subject: Re: Static compile using csm question; how to add linked extension?
Date: Tue, 25 Apr 2023 19:30:37 +0200

> I'm trying to compile the simple.scm example from hypergiant statically
> using csm. Is this possible?
>
> all.options:
> -program simple -C -I/usr/include
>
> simple.options:
> -L -L/usr/lib/x86_64-linux-gnu -L -lepoxy -L -lGL -static -L -static -L -lm
> -L -ldl -link hyperscene
>
> I've tried -R hyperscene and -link hyperscene but neither works.
>
> What am I missing?
>
>   '/home/mrwellan/data/buildall/ck5.3_23WW01/bin/csc' '-o' 'simple' '-I'
> '/home/mrwellan/data/opensrc/hypergiant-examples' '-C' '-I' '-C'
> '/home/mrwellan/data/opensrc/hypergiant-examples' '-static'
> '/home/mrwellan/data/opensrc/hypergiant-examples/simple.scm' '-C'
> '-I/usr/include' '-L' '-L/usr/lib/x86_64-linux-gnu' '-L' '-lepoxy' '-L'
> '-lGL' '-L' '-static' '-L' '-lm' '-L' '-ldl' '-link' 'hyperscene'
> csc: could not find linked extension: hyperscene
> command failed with non-zero exit status:
> '/home/mrwellan/data/buildall/ck5.3_23WW01/bin/csc' '-o' 'simple' '-I'
> '/home/mrwellan/data/opensrc/hypergiant-examples' '-C' '-I' '-C'
> '/home/mrwellan/data/opensrc/hypergiant-examples' '-static'
> '/home/mrwellan/data/opensrc/hypergiant-examples/simple.scm' '-C'
> '-I/usr/include' '-L' '-L/usr/lib/x86_64-linux-gnu' '-L' '-lepoxy' '-L'
> '-lGL' '-L' '-static' '-L' '-lm' '-L' '-ldl' '-link' 'hyperscene'
>

It seems hyperscene is only build statically ("(linkage dynamic)" in
the hyperscene egg file), so no .o file is found to be linked.

You can try to modify the hyperscene egg to build a static extension
variant, just drop that linkage property.


felix




reply via email to

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