Skip to content

Unable to pass compiler option to configure script with CFLAGS and CXXFLAGS environment variable #5084

@kotenok2000

Description

@kotenok2000

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

Image

Before You Submit

  • I have looked for issues that already exist before submitting this
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions