I am trying to compile Nginx with specific optimization flags for nginx-vod-module, but I am stuck on a configuration error.
My Goal:
I want to use the following flags:
-O3
-march=native
-mavx2
-DNGX_VOD_MAX_TRACK_COUNT=256
The Command I ran:
--with-cc-opt="-O3 -mpopcnt -DNGX_VOD_MAX_TRACK_COUNT=256 -mavx2"
The Issue:
Even though I do not include -march=native in my command anymore, the console returns this error:
./configure: error: invalid option "-march=native"
make: *** No targets specified and no makefile found. Stop.
Any advice on how to properly format this or clear the persistent error would be greatly appreciated.