]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Don't include cacheinfo.c in ld.so
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 24 May 2017 13:31:16 +0000 (06:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 24 May 2017 13:33:43 +0000 (06:33 -0700)
Since cacheinfo.c isn't used by ld.so, there is no need to include it
in ld.so.

* sysdeps/x86/cacheinfo.c: Skip if not in libc.

ChangeLog
sysdeps/x86/cacheinfo.c

index 80a6c3ec9721df56ea33f7c661bd1dfd362e1b06..4abd668481fb62847c2fc7b06801cef3be905c00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-05-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86/cacheinfo.c: Skip if not in libc.
+
 2017-05-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86/cacheinfo.c (is_intel): Removed.
index 4594a2fa60fda568fce0a7d47d759324a576d04c..12ffeef5b53db0e39405c01e087460352a3353d3 100644 (file)
@@ -16,6 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#if IS_IN (libc)
+
 #include <assert.h>
 #include <stdbool.h>
 #include <stdlib.h>
@@ -768,3 +770,5 @@ intel_bug_no_cache_info:
      store becomes faster.  */
   __x86_shared_non_temporal_threshold = __x86_shared_cache_size * 6;
 }
+
+#endif