From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EC1EC1396D0 for ; Sat, 30 Sep 2017 17:04:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EB4C42BC01B; Sat, 30 Sep 2017 17:04:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A1D8AE0B73 for ; Sat, 30 Sep 2017 17:04:04 +0000 (UTC) Received: from [192.168.1.217] (host141-139-dynamic.44-79-r.retail.telecomitalia.it [79.44.139.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: keri) by smtp.gentoo.org (Postfix) with ESMTPSA id 2E0A534183B for ; Sat, 30 Sep 2017 17:04:02 +0000 (UTC) From: Keri Harris To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Checking if a package respects LDFLAGS Message-ID: <9cc45a33-5f8d-8bec-123c-7f9c9bba77e5@gentoo.org> Date: Sat, 30 Sep 2017 19:03:59 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Archives-Salt: 165ad942-258a-4b67-9a04-68b165619e64 X-Archives-Hash: 07a6d4426de009a32877903142b56f05 Hi, Is there a recommended method for testing if a package respects LDFLAGS? Arch testers are encouraged to add -Wl,--hash-style=gnu to LDFLAGS [1],[2] and portage uses scanelf to check for .hash sections. However it appears that ld defaults to using a .gnu.hash section: $ touch test.c $ gcc -o libtest.so -shared test.c $ scanelf -qyRF '#k%p' -k .hash libtest.so $ scanelf -qyRF '#k%p' -k .gnu.hash libtest.so libtest.so Maybe I'm missing something obvious. Thanks Keri [1] https://wiki.gentoo.org/wiki/Project:AMD64_Arch_Testers [2] https://wiki.gentoo.org/wiki/Project:X86/Arch_Testers_FAQ