about summary refs log tree commit diff
path: root/pkgs/development/misc/newlib
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-03-22 21:32:04 +0200
committerArtturin <Artturin@artturin.com>2023-03-22 21:32:04 +0200
commit13e3b51c998383df221e8c489a3c8192dff50297 (patch)
tree8e04bf2d7d6cbc7cb26015d69107152f96372ea6 /pkgs/development/misc/newlib
parentc6e871f634db9f868eb95662fc33ef9a94ce2c65 (diff)
newlib: sync configure flags with upstream
removed the common flags to improve the future diffs
Diffstat (limited to 'pkgs/development/misc/newlib')
-rw-r--r--pkgs/development/misc/newlib/default.nix21
1 files changed, 14 insertions, 7 deletions
diff --git a/pkgs/development/misc/newlib/default.nix b/pkgs/development/misc/newlib/default.nix
index 9983d2f9ab91c..e44f087d7f8e1 100644
--- a/pkgs/development/misc/newlib/default.nix
+++ b/pkgs/development/misc/newlib/default.nix
@@ -31,25 +31,32 @@ stdenv.mkDerivation (finalAttrs: {
   '';
 
   configurePlatforms = [ "build" "target" ];
+  # flags copied from https://community.arm.com/support-forums/f/compilers-and-libraries-forum/53310/gcc-arm-none-eabi-what-were-the-newlib-compilation-options
+  # sort alphabetically
   configureFlags = [
     "--host=${stdenv.buildPlatform.config}"
-
+  ] ++ (if !nanoizeNewlib then [
     "--disable-newlib-supplied-syscalls"
     "--disable-nls"
-    "--enable-newlib-retargetable-locking"
-  ] ++ (if !nanoizeNewlib then [
+    "--enable-newlib-io-c99-formats"
     "--enable-newlib-io-long-long"
+    "--enable-newlib-reent-check-verify"
     "--enable-newlib-register-fini"
+    "--enable-newlib-retargetable-locking"
   ] else [
-    "--enable-newlib-reent-small"
-    "--disable-newlib-fvwrite-in-streamio"
     "--disable-newlib-fseek-optimization"
-    "--disable-newlib-wide-orient"
-    "--enable-newlib-nano-malloc"
+    "--disable-newlib-fvwrite-in-streamio"
+    "--disable-newlib-supplied-syscalls"
     "--disable-newlib-unbuf-stream-opt"
+    "--disable-newlib-wide-orient"
+    "--disable-nls"
     "--enable-lite-exit"
     "--enable-newlib-global-atexit"
     "--enable-newlib-nano-formatted-io"
+    "--enable-newlib-nano-malloc"
+    "--enable-newlib-reent-check-verify"
+    "--enable-newlib-reent-small"
+    "--enable-newlib-retargetable-locking"
   ]);
 
   dontDisableStatic = true;