Skip to content

Commit

Permalink
Create numactl-2.0.14-no-librt.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
angerman committed Nov 29, 2022
1 parent 4b20b23 commit 17f1209
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
7 changes: 6 additions & 1 deletion overlays/android.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ final: prev: prev.lib.optionalAttrs prev.stdenv.hostPlatform.isAndroid ({
hardeningDisable = [ "fortify" "stackprotector" "format" ];
configureFlags = old.configureFlags ++ [ "--disable-shared" ];
});

zlib = prev.zlib.override { shared = false; static = true; };


numactl = prev.numactl.overrideAttrs (attrs: {
patches = (attrs.patches or []) ++ [ ./patches/numactl-2.0.14-no-librt.patch ];
});

}) // prev.lib.optionalAttrs prev.stdenv.targetPlatform.isAndroid ({
# we still need the shared libraries to link against on the platform. GHC
# has been neutered to not even try loading shared libs and will use dynamic ones.
Expand Down
13 changes: 13 additions & 0 deletions overlays/patches/numactl-2.0.14-no-librt.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index 44d0d76..1181ca5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,7 +34,7 @@ migratepages_SOURCES = migratepages.c util.c
migratepages_LDADD = libnuma.la

migspeed_SOURCES = migspeed.c util.c
-migspeed_LDADD = libnuma.la -lrt
+migspeed_LDADD = libnuma.la

memhog_SOURCES = memhog.c util.c
memhog_LDADD = libnuma.la

0 comments on commit 17f1209

Please sign in to comment.