aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-09-21 10:45:19 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-09-21 10:45:19 +0200
commit612148c6608fb2df34a8d01ccb3b552cd63eb263 (patch)
tree4417500d51ad7279c64fef064968533964d47226 /Makeconfig
parent1d2ea31ca95adcd68085f487629e0a1b569c7d63 (diff)
downloadglibc-612148c6608fb2df34a8d01ccb3b552cd63eb263.zip
glibc-612148c6608fb2df34a8d01ccb3b552cd63eb263.tar.gz
glibc-612148c6608fb2df34a8d01ccb3b552cd63eb263.tar.bz2
Generate .op pattern rules for profiling builds only
.op pattern rules are not used in non-profiling builds. This does not cause any changes to both profiling and non-profiling builds.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index c1ce74b..a785860 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -905,7 +905,8 @@ endif
# The compilation rules use $(CPPFLAGS-${SUFFIX}) and $(CFLAGS-${SUFFIX})
# to pass different flags for each flavor.
libtypes = $(foreach o,$(object-suffixes-for-libc),$(libtype$o))
-all-object-suffixes := .o .os .op .oS
+# .op may be added to all-object-suffixes below.
+all-object-suffixes := .o .os .oS
object-suffixes :=
CPPFLAGS-.o = $(pic-default)
CFLAGS-.o = $(filter %frame-pointer,$(+cflags))
@@ -930,6 +931,7 @@ PIE-ccflag = -fPIE
ifeq (yes,$(build-profile))
# Under --enable-profile, we will build a static library of profiled objects.
# The profiled object files are named foo.op.
+all-object-suffixes += .op
object-suffixes += .op
CPPFLAGS-.op = -DPROF $(pic-default)
CFLAGS-.op = -pg