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