From nobody Sun Jun 21 04:19:50 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 801683B774A for ; Tue, 7 Apr 2026 13:24:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775568251; cv=none; b=aAuiCEFejsYxayTaqQjmnKshfRwe34Tz2MX4fxW3TwQAuRPUvmsslG9MfsvucUVFDway0gRr7t7g9fRXVPfW2N2xBT9D/7w/NApsbOz+2xcHldfAmWuxokbYP8D1fx8a66av2w7HzZNhVM+hHu1CIpjSyfN+G6kUHSdPuyL0DO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775568251; c=relaxed/simple; bh=aiJRzYmbjr/ne3e1lrjFy8C1DoRcZx48rrVAyGcOD0E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-type; b=XtxaSJecyZ1czJ7cJHXUeZrs1wVCzUvfNfH7J9DP/Y/KBJWpeV7Jz85VMIgyI4kgAfj/hBACc/mvHFDBTT+Nyb7/pUEFi1LzJHAeaIKbAV95VHjkQ51aPtZDSHybisqqggSCTHSJduNwVgQpkGPGJQNStyymyJkXgX2fIOb7OSQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BnMRSl4Z; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BnMRSl4Z" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1775568248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X2mCRZ1ZqltqbwxzVXNBWJLzL6KIIABmyCusloPg0CM=; b=BnMRSl4ZMbIV15fL7gOLC/Yc3uLNTeaFqgn6vmzTLJwG2SMLrg2tWUCX7LlwzIWkKgGqg0 9GYGOBTtQvs2TRbxz6Viq97qOityHCmchWHClaAw3f1TMJERveM03LRZsxlRdieYYWNF/t v9jur1Hgzgrjvwmx04D/ZK93PLpW1V8= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-517-5EFWyfwzPb61fiP1TP0kdQ-1; Tue, 07 Apr 2026 09:24:07 -0400 X-MC-Unique: 5EFWyfwzPb61fiP1TP0kdQ-1 X-Mimecast-MFC-AGG-ID: 5EFWyfwzPb61fiP1TP0kdQ_1775568246 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 237A21956096; Tue, 7 Apr 2026 13:24:06 +0000 (UTC) Received: from t14ultra.redhat.com (unknown [10.44.32.212]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7DD3C300019F; Tue, 7 Apr 2026 13:24:04 +0000 (UTC) From: Jan Stancek To: shuah@kernel.org, linux-kselftest@vger.kernel.org Cc: jstancek@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] selftests/timens: extend CFLAGS to keep options from environment Date: Tue, 7 Apr 2026 15:23:56 +0200 Message-ID: <010009be026f75eac11930bc1bb2036625dbf90a.1775568176.git.jstancek@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Content-Type: text/plain; charset="utf-8" Package build environments like Fedora rpmbuild introduced hardening options (e.g. -pie -Wl,-z,now) by passing a -spec option to CFLAGS and LDFLAGS. Some Makefiles currently override CFLAGS but not LDFLAGS, which leads to a mismatch and build failure, for example: CC timens /usr/bin/ld: /tmp/cc2nZXqb.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: failed to set dynamic section sizes: bad value This mimics fixes already done in other tests, for example: commit 23b3a7c4a758 ("selftests: mptcp: extend CFLAGS to keep options from environment") Signed-off-by: Jan Stancek --- tools/testing/selftests/timens/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/timens/Makefile b/tools/testing/selfte= sts/timens/Makefile index f0d51d4d2c87..357077792395 100644 --- a/tools/testing/selftests/timens/Makefile +++ b/tools/testing/selftests/timens/Makefile @@ -1,7 +1,7 @@ TEST_GEN_PROGS :=3D timens timerfd timer clock_nanosleep procfs exec futex= vfork_exec TEST_GEN_PROGS_EXTENDED :=3D gettime_perf =20 -CFLAGS :=3D -Wall -Werror -pthread +CFLAGS +=3D -Wall -Werror -pthread LDLIBS :=3D -lrt -ldl =20 include ../lib.mk --=20 2.47.3