gwatt / chez-exe

Chez Scheme self hosting executable
Other
179 stars 40 forks source link

Use CFLAGS and LDFLAGS when compile-chez-program builds itself #5

Closed weinholt closed 5 years ago

weinholt commented 5 years ago

This allows a user to pass -lz to the compiler, which is required on Debian.

Admittedly I didn't check if it's harmless to always pass -lz.

gwatt commented 5 years ago

I had thought about this, and presumably on debian you would need to pass -lz every time you run compile-chez-program, not just on the initial build. Would it make more sense to have a config option for extra compiler arguments that are always provided?

weinholt commented 5 years ago

I agree that it would make more sense. I will redo it as a gen-config argument.

weinholt commented 5 years ago

Additional arguments to gen-config.ss are now saved to config.ss and appended with compiler-args.