Chicken Scheme pass on parameters to gcc

51 Views Asked by At

In Chicken Scheme, can I pass on certain values that will be given to gcc? I would like to pass on the following options to the gcc but I don't know how:

-lX11 -lpthread -lXinerama -lXext -lGL -g -lm -ldl
2

There are 2 best solutions below

0
MWhatsUp On BEST ANSWER

Thanks to litro I found the the answer. The following worked for me:

csc main.scm lib.o -L "-lX11" -L "-lpthread" -L "-lXinerama" -L "-lXext" -L "-lGL" -L "-g" -L "-lm" -L "-ldl"

or

csc main.scm lib.o -L "-lX11 -lpthread -lXinerama -lXext -lGL -g -lm -ldl"
0
litro On

You can pass options from csc to the C compiler via the -C switch and to the linker via the -L switch (see csc -help).