076f82
commit ccc54bd61c768b6a27f9305a0831b76a7b6d706f
076f82
Author: Noah Goldstein <goldstein.w.n@gmail.com>
076f82
Date:   Wed Jun 29 18:56:18 2022 -0700
076f82
076f82
    x86: Add missing IS_IN (libc) check to strncmp-sse4_2.S
076f82
    
076f82
    Was missing to for the multiarch build rtld-strncmp-sse4_2.os was
076f82
    being built and exporting symbols:
076f82
    
076f82
    build/glibc/string/rtld-strncmp-sse4_2.os:
076f82
    0000000000000000 T __strncmp_sse42
076f82
    
076f82
    Introduced in:
076f82
    
076f82
    commit 11ffcacb64a939c10cfc713746b8ec88837f5c4a
076f82
    Author: H.J. Lu <hjl.tools@gmail.com>
076f82
    Date:   Wed Jun 21 12:10:50 2017 -0700
076f82
    
076f82
        x86-64: Implement strcmp family IFUNC selectors in C
076f82
    
076f82
    (cherry picked from commit 96ac447d915ea5ecef3f9168cc13f4e731349a3b)
076f82
076f82
diff --git a/sysdeps/x86_64/multiarch/strncmp-sse4_2.S b/sysdeps/x86_64/multiarch/strncmp-sse4_2.S
076f82
index 22f51a0dfd2770c9..85dc363bf9d6273d 100644
076f82
--- a/sysdeps/x86_64/multiarch/strncmp-sse4_2.S
076f82
+++ b/sysdeps/x86_64/multiarch/strncmp-sse4_2.S
076f82
@@ -16,6 +16,8 @@
076f82
    License along with the GNU C Library; if not, see
076f82
    <https://www.gnu.org/licenses/>.  */
076f82
 
076f82
-#define STRCMP_SSE42 __strncmp_sse42
076f82
-#define USE_AS_STRNCMP
076f82
-#include "strcmp-sse42.S"
076f82
+#if IS_IN (libc)
076f82
+# define STRCMP_SSE42 __strncmp_sse42
076f82
+# define USE_AS_STRNCMP
076f82
+# include "strcmp-sse42.S"
076f82
+#endif