]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Generate .op pattern rules for profiling builds only
authorFlorian Weimer <fweimer@redhat.com>
Wed, 21 Sep 2016 08:45:19 +0000 (10:45 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 21 Sep 2016 08:45:19 +0000 (10:45 +0200)
.op pattern rules are not used in non-profiling builds.

This does not cause any changes to both profiling and non-profiling
builds.

ChangeLog
Makeconfig

index 2e29b7d2d71fc20bb187ec7578b4d0fc6075ba42..71fed8f74174b0b85a1bc25424e73d1918dffe15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-21  Florian Weimer  <fweimer@redhat.com>
+
+       * Makeconfig (all-object-suffixes): Include .op only if
+       $(build-profile).
+
 2016-09-21  Florian Weimer  <fweimer@redhat.com>
 
        * elf/sln.c: Remove HAVE_CONFIG_H, S_ISDIR, S_ISLNK preprocessor
index c1ce74b4b4a68c3c3f4e3772b4805ef219790332..a7858607b08355b74ac23e85a73a9c94c8424aef 100644 (file)
@@ -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