in reply to Defining an XS symbol in the Makefile.PL
Normally, I would suggest adding backslashes, but I do not know exactly how many layers of quoting this would need.
Perl has a neat feature: the custom quote operators. I suggest:
WriteMakefile( .... DEFINE => q['-DMY_FORMAT="%.16e"'], .... );
... which should put the entire parameter in "shell" single quotes.
Another option is to follow the method used by GNU autoconf and write out a "config.h" file with '#define MY_FORMAT "%.16e"' in it somewhere.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Defining an XS symbol in the Makefile.PL
by afoken (Chancellor) on Aug 18, 2019 at 06:24 UTC | |
by syphilis (Archbishop) on Aug 18, 2019 at 07:15 UTC | |
by jcb (Parson) on Aug 18, 2019 at 07:29 UTC | |
by syphilis (Archbishop) on Aug 18, 2019 at 09:40 UTC | |
by jcb (Parson) on Aug 18, 2019 at 22:35 UTC | |
| |
by jcb (Parson) on Aug 18, 2019 at 06:41 UTC |