Description: Add default options for Debian MIPS64 ABI
 LDC defaults to MIPS III O32 ABI instead of Debian's
 default MIPS64 R2 N64 ABI, we adjust the LDC default
 to match Debian's default.
Author: Zixing Liu <liushuyu011@gmail.com>
Forwarded: not-needed
Last-Update: 2025-01-25
---
--- a/ldc2_install.conf.in
+++ b/ldc2_install.conf.in
@@ -40,3 +40,16 @@
     ];
     lib-dirs = [];
 };
+
+// Debian added defaults
+"^mips64el-.*-linux-gnuabi64$":
+{
+    // default switches appended after all explicit command-line switches
+    post-switches = [
+        "-I@INCLUDE_INSTALL_DIR@",
+        "-I/usr/include/d",
+        "-mcpu=mips64r2",
+        "-mabi=n64"
+    ];
+};
+// End of Debian added defaults
