From nobody Sun Mar 22 01:38:58 2026 X-Original-To: dev-commits-src-all@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 4fdf942WDBz6VB0k for ; Sun, 22 Mar 2026 01:39:04 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fdf941ctSz3vf8 for ; Sun, 22 Mar 2026 01:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774143544; 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=DIjqp7/Yb+rN1MhgcwOS4CLFxUgx/d9I0d5J5bwPb2c=; b=kYGkMGlWqZQhuEZaxogD65CnkcIceobRtrahxDlE+QPH+jzjQ90GWREpwL9tXTl3WxCQJ7 wG86hPlvTbOg9gmKnEPWbuy6/95HR5jkNJ5GL2PzBD5D3F4Hk681lsJmDZVWgUAAi6Z73e k3lQ5UP7dUdix0pDLnJO9FlGGRmSHwSGf3gtMF/2Tsy08ANh8crsZXXV1bL6JroWsAZHk+ yZdgij6UbuFlJXcOwjHudX+lz4vanMZDmugqJoPlz4sCB8888Kf0mKBGXBwR1J5r18a1JH +JF1JDcyDj8XZ1D/fqXfQ7kZ62XfwjqIwNzZlwOi5iEjzImlmSwPvjAn7ZpSeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774143544; a=rsa-sha256; cv=none; b=eb11mbz2S/mVLbCFnlj8MhSFx/ZG1tJ9pBcFs/+QNAC7dEHg2GTe5zmN7aUGlLPudpyl75 tvAwxRsguN4ZnlV1jKIcxbQA3dRckKZlVQkWin6BFuXA/ifoKpWYQWyo+lfYtKswoYv5ev iSDKm5XXj9GgxbT/ok6gNlxQRBtnscDsQjlGpjILMR+IRDxKvb7OLgpjldpF8E6oQgsbpL citbHktmOKYXurQRwJv24mVs7V6ybWXW7vJBZ9SfLdeEF74sMdPoXG0lK5Tl0XqdHMK/ws //b6gvow1sPEwt3N2nGxwWK4aeuaz8QAmFUUsodnTMLbVY1kAL9QkDCSGHQk8g== 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=1774143544; 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=DIjqp7/Yb+rN1MhgcwOS4CLFxUgx/d9I0d5J5bwPb2c=; b=oLeKH3nz6y8+VV11pHOJOXd/5OsoZAZqUNUJAfTQQMPxFqn9c9bzkTVYCWLq2MAdduanVd gP5hFskk59PLq9lGzbo53FFNEzh/j3V6tLRuGwwrtYS7pCpqUOR9Hwy9LvX7QpHAyRdLCD ef8G+26QZleq+QEolEO2yJx58ozmpMJCulhwwRHRvF4Ih+rWqbwWF7tbDyAe3NDbvkm/JR Z8g4IAHGieVHrwSvGhZbG2JDvm4RlN0zMtxLceAIz9D/IvXHjrTcO5KOdB8iNBEBVi+G/0 aUpbcjZ6A/7pbcyb6UCiLhvEEK4vJc/0amFbI6Hc41f8bIeqNZN3SNwbcFCU9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fdf9411Tyzdvy for ; Sun, 22 Mar 2026 01:39:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41a59 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 22 Mar 2026 01:38:58 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: 3797fe720a37 - main - libcrypto: compile all PIC objects with -DOPENSSL_PIC -fPIC List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3797fe720a37ff9fb5b20546494ef1c4a6c01541 Auto-Submitted: auto-generated Date: Sun, 22 Mar 2026 01:38:58 +0000 Message-Id: <69bf4832.41a59.1df6e724@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=3797fe720a37ff9fb5b20546494ef1c4a6c01541 commit 3797fe720a37ff9fb5b20546494ef1c4a6c01541 Author: Enji Cooper AuthorDate: 2026-03-22 00:39:16 +0000 Commit: Enji Cooper CommitDate: 2026-03-22 01:38:49 +0000 libcrypto: compile all PIC objects with -DOPENSSL_PIC -fPIC This change modifies the libcrypto PIC objects to always compile with `-DOPENSSL_PIC -fPIC` to restore parity with the upstream build process. This ensures that the legacy provider is built with parity to the upstream legacy provider. MFC after: 12 days Tested with: `make check` (legacy provider), `make universe` Fixes: 14b9955e Differential Revision: https://reviews.freebsd.org/D44896 --- secure/lib/libcrypto/Makefile | 6 ------ secure/lib/libcrypto/Makefile.inc | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile index 738de3479987..9d484e9d480c 100644 --- a/secure/lib/libcrypto/Makefile +++ b/secure/lib/libcrypto/Makefile @@ -687,12 +687,6 @@ SUBDIR.${MK_TESTS}= tests .include -.if ${MACHINE} == "powerpc" -# Work around "relocation R_PPC_GOT16 out of range" errors -PICFLAG= -fPIC -.endif -PICFLAG+= -DOPENSSL_PIC - .if defined(ASM_${MACHINE_CPUARCH}) .PATH: ${SRCTOP}/sys/crypto/openssl/${MACHINE_CPUARCH} .if defined(ASM_amd64) diff --git a/secure/lib/libcrypto/Makefile.inc b/secure/lib/libcrypto/Makefile.inc index 73c650d590ff..8f22d501e005 100644 --- a/secure/lib/libcrypto/Makefile.inc +++ b/secure/lib/libcrypto/Makefile.inc @@ -12,6 +12,9 @@ CFLAGS+= -I${LCRYPTO_SRC}/providers/common/include CFLAGS+= -I${LCRYPTO_SRC}/providers/fips/include CFLAGS+= -I${LCRYPTO_SRC}/providers/implementations/include +PICFLAG= -fPIC +PICFLAG+= -DOPENSSL_PIC + .SUFFIXES: .pc .PATH.pc: ${LCRYPTO_SRC}/exporters