Control: tags 883179 + upstream Hi,
James Cowgill wrote: > When cross-compiled, dash compiles in a list of signal names used for > various purposes (eg kill -NAME). Unfortunately the signal names are > generated by using the *build* compiler instead of the *host* compiler > so the signals are incorrect when dash is actually run on the host machine. Interesting! I assume you're referring to src/mksignames.c. I think this should be doable using preprocessor alone instead of generated code. Failing that, I think we can do something in configure e.g. using the #warning trick. Will look into it. > I notice the signal generation code has been copied from bash. Newer > versions of bash have a fix for this which initialized the list of > signals at runtime when cross-compiled. Maybe you could copy the fix > from bash? I think that would go against dash's goal of being small and simple. It might be possible to simplify the way the signal name table is used to avoid the need for code generation altogether, though, which would be even nicer. Thanks, Jonathan