Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gmon use the pico objects if we are making a PIC pr...



details:   https://anonhg.NetBSD.org/src/rev/1c48e478bd41
branches:  trunk
changeset: 447287:1c48e478bd41
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 06 18:14:10 2019 +0000

description:
use the pico objects if we are making a PIC profiled library.

diffstat:

 lib/libc/gmon/Makefile.inc |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r ec00e4e2d911 -r 1c48e478bd41 lib/libc/gmon/Makefile.inc
--- a/lib/libc/gmon/Makefile.inc        Sun Jan 06 17:02:32 2019 +0000
+++ b/lib/libc/gmon/Makefile.inc        Sun Jan 06 18:14:10 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.13 2018/02/05 22:12:37 mrg Exp $
+#      $NetBSD: Makefile.inc,v 1.14 2019/01/06 18:14:10 christos Exp $
 #      @(#)Makefile.inc        8.1 (Berkeley) 6/4/93
 
 # gmon sources
@@ -26,8 +26,9 @@
 
 
 # mcount and gmon cannot be compiled with profiling
-mcount.po: mcount.o
-       cp mcount.o mcount.po
+GMONOBJEXT=${${MKPIC} != "no":?pico:o}
+mcount.po: mcount.${GMONOBJEXT}
+       cp mcount.${GMONOBJEXT} mcount.po
 
-gmon.po: gmon.o
-       cp gmon.o gmon.po
+gmon.po: gmon.${GMONOBJEXT}
+       cp gmon.${GMONOBJEXT} gmon.po



Home | Main Index | Thread Index | Old Index