aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-04-09 14:42:29 -0700
committerRoland McGrath <roland@hack.frob.com>2015-04-09 14:42:29 -0700
commit8a257e2cb50cd8e8e3e2368d80bf325ea4086cf9 (patch)
treea35632b774d2c4f7c43d316d1b5975eb3d57ffda /Makeconfig
parent054392910be496adb8c4e611084827082135c404 (diff)
downloadglibc-8a257e2cb50cd8e8e3e2368d80bf325ea4086cf9.zip
glibc-8a257e2cb50cd8e8e3e2368d80bf325ea4086cf9.tar.gz
glibc-8a257e2cb50cd8e8e3e2368d80bf325ea4086cf9.tar.bz2
Omit libc-modules.h for all .v.i files.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig16
1 files changed, 6 insertions, 10 deletions
diff --git a/Makeconfig b/Makeconfig
index 4e336a4..dc7f208 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -848,12 +848,6 @@ built-modules = iconvprogs iconvdata ldconfig lddlibc4 libmemusage \
libSegFault libpcprofile librpcsvc locale-programs \
memusagestat nonlib nscd extramodules libnldbl
-# We don't include libc-modules.h when these targets are being built. These
-# targets don't (and will likely never need to) use the IS_IN facility. In
-# fact, shlib-versions should not use it because that will create a circular
-# dependency as libc-modules.h is generated from shlib-versions.
-skip-module-cppflags = shlib-versions.v.i Versions.v.i
-
in-module = $(subst -,_,$(firstword $(libof-$(basename $(@F))) \
$(libof-$(<F)) \
$(libof-$(@F)) \
@@ -862,10 +856,12 @@ in-module = $(subst -,_,$(firstword $(libof-$(basename $(@F))) \
module-cppflags-real = -include $(common-objpfx)libc-modules.h \
-DMODULE_NAME=$(in-module)
-# We don't need libc-modules.h and the MODULE_NAME definition for
-# shlib-version.v.i.
-module-cppflags = $(if $(filter $(@F),$(skip-module-cppflags)), \
- ,$(module-cppflags-real))
+# We don't need libc-modules.h and the MODULE_NAME definition for .v.i
+# files. These targets don't (and will likely never need to) use the IS_IN
+# facility. In fact, shlib-versions should not use it because that will
+# create a circular dependency as libc-modules.h is generated from
+# shlib-versions.
+module-cppflags = $(if $(filter %.v.i,$(@F)),,$(module-cppflags-real))
# These are the variables that the implicit compilation rules use.
# Note that we can't use -std=* in CPPFLAGS, because it overrides