Closed intelfx closed 4 months ago
Thanks! I just realized I have packaged this to NixOS with -march=native
.
I think we should get rid of -march=native
and leave it to the callers. Can you review https://github.com/mikesart/inotify-info/pull/44 ?
Allow overriding the "general purpose" (performance, debugging, hardening) flags in
$(CFLAGS)
,$(CXXFLAGS)
and$(LDFLAGS)
while at the same time ensuring they always contain the "functionally required" flags (C/C++ standard conformance, diagnostics and preprocessor definitions).This e.g. makes it possible to build inotify-info with
Where
-O2
overrides the instruction set, optimization level and debugging information generation flags (as might be the distro policy), while keeping the necessary flags such as-std=...
and-D...
intact.