@Andrei_Korshikov The problem is unrelated to Meson. It is caused by the update from pacman-6.0.2
to pacman-6.1.0
changing the makepkg.conf
default from
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
to
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
-Wl,-z,pack-relative-relocs"
This PKGBUILD
modifies the LDFLAGS
prior to running Meson via
export LDFLAGS=${LDFLAGS/,-z,now}
that is the string ,-z,now
is deleted from LDFLAGS
(Explanation of the Syntax). While this was fine before, it will now result in a lone -Wl
not followed by a comma.
It should now be clear how to fix the build:
--- a/PKGBUILD 2024-03-24 19:31:23.935975436 +0100
+++ b/PKGBUILD 2024-03-24 19:14:33.945272553 +0100
@@ -54,7 +54,7 @@
# See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
export CFLAGS=${CFLAGS/-fno-plt}
export CXXFLAGS=${CXXFLAGS/-fno-plt}
- export LDFLAGS=${LDFLAGS/,-z,now}
+ export LDFLAGS=${LDFLAGS/-Wl,-z,now}
arch-meson "${_pkgbase}" build \
-D ipv6=true \
The same fix was applied to extra/xorg-server
.
Pinned Comments
yurikoles commented on 2022-03-18 01:04 (UTC)
check()
function was added, if unit tests fail, you may ignore them by appending--nocheck
tomakepkg
.yurikoles commented on 2019-05-29 15:00 (UTC)
PRs are welcome: https://github.com/yurikoles-aur/xorg-server-git