MWhatsUp
MWhatsUp

Reputation: 41

Chicken Scheme pass on parameters to gcc

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

Upvotes: 1

Views: 65

Answers (2)

MWhatsUp
MWhatsUp

Reputation: 41

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"

Upvotes: 0

litro
litro

Reputation: 330

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).

Upvotes: 1

Related Questions