/usr/src/glibc/debian/sysdeps/linux.mk is in eglibc-source 2.19-0ubuntu6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | # When changing this, make sure to update debian/debhelper.in/libc.preinst!
ifneq (,$(filter $(DEB_HOST_ARCH),powerpc ppc64 ppc64el armel armhf arm64 x32))
MIN_KERNEL_SUPPORTED := 2.6.32
else
MIN_KERNEL_SUPPORTED := 2.6.24
endif
libc = libc6
# Build and expect pt_chown on this platform
pt_chown = yes
# NPTL Config
threads = yes
libc_add-ons = nptl $(add-ons)
ifeq ($(DEB_BUILD_PROFILE),bootstrap)
libc_extra_config_options = $(extra_config_options)
else
libc_extra_config_options = --with-selinux $(extra_config_options)
endif
ifndef LINUX_SOURCE
ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
LINUX_HEADERS := /usr/include
else
LINUX_HEADERS := /usr/$(DEB_HOST_GNU_TYPE)/include
endif
LINUX_ARCH_HEADERS := /usr/include/$(DEB_HOST_MULTIARCH)
else
LINUX_HEADERS := $(LINUX_SOURCE)/include
endif
# Minimum Kernel supported
with_headers = --with-headers=$(shell pwd)/debian/include --enable-kernel=$(call xx,MIN_KERNEL_SUPPORTED)
KERNEL_HEADER_DIR = $(stamp)mkincludedir
$(stamp)mkincludedir:
rm -rf debian/include
mkdir debian/include
# Kernel headers
if [ -d "$(LINUX_ARCH_HEADERS)/asm" ]; then \
ln -s $(LINUX_ARCH_HEADERS)/asm debian/include ; \
else \
ln -s $(LINUX_HEADERS)/asm debian/include ; \
fi
ln -s $(LINUX_HEADERS)/asm-generic debian/include
ln -s $(LINUX_HEADERS)/linux debian/include
# Library headers
for h in libaudit.h selinux sys/capability.h ; do \
mkdir -p debian/include/$$(dirname $$h) ; \
if [ -d "/usr/include/$(DEB_HOST_MULTIARCH)/$$h" ]; then \
ln -s /usr/include/$(DEB_HOST_MULTIARCH)/$$h debian/include/$$h ; \
else \
ln -s /usr/include/$$h debian/include/$$h ; \
fi ; \
done
# To make configure happy if libc6-dev is not installed.
touch debian/include/assert.h
touch $@
# Also to make configure happy.
export CPPFLAGS = -isystem $(shell pwd)/debian/include
# This round of ugliness decomposes the Linux kernel version number
# into an integer so it can be easily compared and then does so.
CURRENT_KERNEL_VERSION=$(shell uname -r)
define kernel_check
(minimum=$$((`echo $(1) | sed 's/^\([0-9]*\.[0-9]*\)\([^.0-9]\|$$\)/\1.0\2/; s/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 10000 + \2 \* 100 + \3/'`)); \
current=$$((`echo $(CURRENT_KERNEL_VERSION) | sed 's/^\([0-9]*\.[0-9]*\)\([^.0-9]\|$$\)/\1.0\2/; s/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 10000 + \2 \* 100 + \3/'`)); \
if [ $$current -lt $$minimum ]; then \
false; \
fi)
endef
|