diff --git a/pika-build-config/lto.sh b/pika-build-config/lto.sh
index fd27059d7..ab511a582 100644
--- a/pika-build-config/lto.sh
+++ b/pika-build-config/lto.sh
@@ -1,5 +1,5 @@
-export PIKA_PACKAGE_VERSION="3:1.0.1-3"
-export PIKA_PACKAGE_NAME="php-pspell"
+export PIKA_PACKAGE_VERSION="4:24.12.0-1"
+export PIKA_PACKAGE_NAME="messagelib"
 export PIKA_PACKAGE_PATCH=false
 export PIKA_REBUILD=false
 export PIKA_REBUILD_VERSION="b0"