Skip to content

Commit 17f1209

Browse files
committed
Create numactl-2.0.14-no-librt.patch
1 parent 4b20b23 commit 17f1209

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

overlays/android.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isAndroid ({
2525
hardeningDisable = [ "fortify" "stackprotector" "format" ];
2626
configureFlags = old.configureFlags ++ [ "--disable-shared" ];
2727
});
28+
2829
zlib = prev.zlib.override { shared = false; static = true; };
29-
30+
31+
numactl = prev.numactl.overrideAttrs (attrs: {
32+
patches = (attrs.patches or []) ++ [ ./patches/numactl-2.0.14-no-librt.patch ];
33+
});
34+
3035
}) // prev.lib.optionalAttrs prev.stdenv.targetPlatform.isAndroid ({
3136
# we still need the shared libraries to link against on the platform. GHC
3237
# has been neutered to not even try loading shared libs and will use dynamic ones.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Makefile.am b/Makefile.am
2+
index 44d0d76..1181ca5 100644
3+
--- a/Makefile.am
4+
+++ b/Makefile.am
5+
@@ -34,7 +34,7 @@ migratepages_SOURCES = migratepages.c util.c
6+
migratepages_LDADD = libnuma.la
7+
8+
migspeed_SOURCES = migspeed.c util.c
9+
-migspeed_LDADD = libnuma.la -lrt
10+
+migspeed_LDADD = libnuma.la
11+
12+
memhog_SOURCES = memhog.c util.c
13+
memhog_LDADD = libnuma.la

0 commit comments

Comments
 (0)