mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
tradcpp: improved aarch64 support
This commit is contained in:
parent
703827f36c
commit
93ba7aa8c5
12
pkgs/development/tools/tradcpp/aarch64.patch
Normal file
12
pkgs/development/tools/tradcpp/aarch64.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff a/config.h b/config.h
|
||||
--- a/config.h
|
||||
+++ b/config.h
|
||||
@@ -124,6 +124,8 @@
|
||||
#define CONFIG_CPU "__ppc64__"
|
||||
#elif defined(__ARM__)
|
||||
#define CONFIG_CPU "__ARM__"
|
||||
+#elif defined(__aarch64__)
|
||||
+#define CONFIG_CPU "__aarch64__"
|
||||
#else
|
||||
/* let it go */
|
||||
#endif
|
@ -11,7 +11,10 @@ stdenv.mkDerivation {
|
||||
# tradcpp only comes with BSD-make Makefile; the patch adds configure support
|
||||
buildInputs = [ autoconf ];
|
||||
preConfigure = "autoconf";
|
||||
patches = [ ./tradcpp-configure.patch ];
|
||||
patches = [
|
||||
./tradcpp-configure.patch
|
||||
./aarch64.patch
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A traditional (K&R-style) C macro preprocessor";
|
||||
|
Loading…
Reference in New Issue
Block a user