cc-wrapper: add option to skip flags for native optimizations
This commit is contained in:
@@ -13,11 +13,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace {.,pfcquirks}/CMakeLists.txt \
|
||||
--replace "-march=native" ""
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
@@ -13,12 +13,6 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ pkgconfig autoconf automake openssl libgsf gmp ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace Makefile.in \
|
||||
--replace '-march=native' "" \
|
||||
--replace '-mtune=native' ""
|
||||
'';
|
||||
|
||||
installPhase =
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
|
||||
Reference in New Issue
Block a user