From nobody Wed Sep 20 20:23:51 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RrVNl6LrKz4v7KB; Wed, 20 Sep 2023 20:23:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrVNl5jYbz4HsR; Wed, 20 Sep 2023 20:23:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695241431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LdEk1Scaila30VkLVM0NPgrzjCtR2MATYJ9V844v3eM=; b=ybP18TYzRxyaq9sMyiVSPomp+tDiA0dko5qb1dvsejtjCpTESDf5AucizJhJWH+ObCkNhS GN+dFxMq0pg1gTsBzSmhUkJlGd/kUoH7cwZky2V8pWFcax6MqC/R1RhooBkzvMETI6RtO3 gERdza9tjVclbPbNvNJc6vfaiJiVovbDPpv7ZxUPrMncjhsVJlfYloNmOIKrb70OK2SnQh AhRmaXSqWOf2mr+nsjQM/9IrKhpKAebKDOvFkfQND4nsL8d2Ftw3URL0U+r9lXX9AyuAGM vjNiug+h7jdwt9m1xC+RCiycwRfUAAzKan2mbggmXb/eTJLkwhvuzYNeGAe3MA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695241431; a=rsa-sha256; cv=none; b=n9YuSYba/EGdePPvowYbpW2EC5GyKCg9yVP6ov+fIBnDi8OuMZnXLVadX6Js5ePBkoG8Dw RDomp/Il2WtviIK0WMGemg2rx/467ZhEv7lTn8G4lUsV3fwAKeicUYOYVply+8lHnyxEGK l/RnEh2rEhnJz0mSTP6qY9orvrpZpjc9bNTqLKZ3+2F6ybQizeSE1sgWIJYmw+yznJBdP/ fp6wgxUmjMDBQPdpv3HI+DZrgP8uaKksWZ8Iihz/nQMEWh84eDlIjeMDD3yOTlTlfl43sf XIa5y7hBk2mOLeiIIjFT2E3uMAeEZyq+3bNwce3yWaCQbeccEcFhdTt0BVLh/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695241431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LdEk1Scaila30VkLVM0NPgrzjCtR2MATYJ9V844v3eM=; b=H5H4uSQE5CBr3NQ5pL/SMHbBd1Tr6Ee9jV0UJpABR3zM1x2e+LQXeoiezhVk2pSJUmSxCo uto+24Fn32k0w4M5QafbwtlYfB5WC4ZFI1Z6v6pH5ldmJSnL/y51vz12ISr362zSN0HOFJ CGhEXEAk3CvFXZIECRD65dZ/d8s7eakwtRnQUwLYPqnL85fnE7Q0JQNKwP3upYVD1/V4T2 nVA2JqH7UNRcHvvD0PYOz3rQU+1CVsN4nFWbbdjTm2LQUJFVaETOeywZiEnx5qcFtk8P5V izZOnoSvkNATKQInrSzcNyE6D7Y1ng95Qn1lSE0bkTG0b6zODhQ/VYUbGFHdyw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RrVNl4nMRz194S; Wed, 20 Sep 2023 20:23:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38KKNpjm084790; Wed, 20 Sep 2023 20:23:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38KKNpKm084787; Wed, 20 Sep 2023 20:23:51 GMT (envelope-from git) Date: Wed, 20 Sep 2023 20:23:51 GMT Message-Id: <202309202023.38KKNpKm084787@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: e8989d5d9e57 - main - graphics/mesa-dri: fix build with lld 17 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e8989d5d9e57043bed503e97339f16882513e4c0 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=e8989d5d9e57043bed503e97339f16882513e4c0 commit e8989d5d9e57043bed503e97339f16882513e4c0 Author: Dimitry Andric AuthorDate: 2023-09-20 17:49:58 +0000 Commit: Dimitry Andric CommitDate: 2023-09-20 20:21:22 +0000 graphics/mesa-dri: fix build with lld 17 Some symbols in mesa's linker version scripts are not always defined, depending on configuration options. Suppress errors with lld >= 17 due to these undefined symbols. This applies to multiple mesa ports, such as mesa-dri, mesa-libs, mesa-gallium-*, etc. So add the LDFLAGS setting to Makefile.common. PR: 273981 Approved by: x11 (manu) MFH: 2023Q3 --- graphics/mesa-dri/Makefile.common | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graphics/mesa-dri/Makefile.common b/graphics/mesa-dri/Makefile.common index 8a3753c5a031..2b2e8e7e9a37 100644 --- a/graphics/mesa-dri/Makefile.common +++ b/graphics/mesa-dri/Makefile.common @@ -88,3 +88,8 @@ CONFIGURE_ENV+= LLVM_CONFIG=llvm-config${LLVM_DEFAULT} LDFLAGS+= -Wl,-rpath=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib MESON_ARGS+= -Dllvm=enabled + +# Some symbols in mesa's linker version scripts are not always defined, +# depending on configuration options. Suppress errors with lld >= 17 due to +# these undefined symbols. +LDFLAGS+= -Wl,--undefined-version