help
help copied to clipboard
Unable to pass compiler option to configure script with CFLAGS and CXXFLAGS environment variable
Node.js Version
v24.5.0
NPM Version
v0.0.0
Operating System
Linux DESKTOP-P57624Q 4.4.0-26100-Microsoft #1882-Microsoft Fri Jan 01 08:00:00 PST 2016 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
Other
Description
When i run CFLAGS=" $CFLAGS -march=native -pipe " CXXFLAGS=" $CXXFLAGS -march=native -pipe " ./configure and after that make i do not see -march=native in compiler output.
Minimal Reproduction
wget https://github.com/nodejs/node/archive/refs/tags/v24.5.0.zip unzip v24.5.0.zip cd node-24.5.0 CFLAGS=" $CFLAGS -march=native -pipe " CXXFLAGS=" $CXXFLAGS -march=native -pipe " ./configure make
Output
Before You Submit
- [x] I have looked for issues that already exist before submitting this
- [x] My issue follows the guidelines in the README file, and follows the 'How to ask a good question' guide at https://stackoverflow.com/help/how-to-ask