diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-05-24 06:31:16 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-05-24 06:33:43 -0700 |
commit | 9c450f6f6f0e2089b780d0510ae6153740fc7d1d (patch) | |
tree | 878e4ca45841773a106fae85e4ee3a7b31cf6a8c /sysdeps/x86/cacheinfo.c | |
parent | 7c1d722554dc3422295a36da631e03503b676935 (diff) | |
download | glibc-9c450f6f6f0e2089b780d0510ae6153740fc7d1d.tar.gz glibc-9c450f6f6f0e2089b780d0510ae6153740fc7d1d.tar.xz glibc-9c450f6f6f0e2089b780d0510ae6153740fc7d1d.zip |
x86: Don't include cacheinfo.c in ld.so
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.
Diffstat (limited to 'sysdeps/x86/cacheinfo.c')
-rw-r--r-- | sysdeps/x86/cacheinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c index 4594a2fa60..12ffeef5b5 100644 --- a/sysdeps/x86/cacheinfo.c +++ b/sysdeps/x86/cacheinfo.c @@ -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 |