Module Name:    src
Committed By:   christos
Date:           Sun Jan  6 18:14:10 UTC 2019

Modified Files:
        src/lib/libc/gmon: Makefile.inc

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


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gmon/Makefile.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gmon/Makefile.inc
diff -u src/lib/libc/gmon/Makefile.inc:1.13 src/lib/libc/gmon/Makefile.inc:1.14
--- src/lib/libc/gmon/Makefile.inc:1.13	Mon Feb  5 17:12:37 2018
+++ src/lib/libc/gmon/Makefile.inc	Sun Jan  6 13:14:10 2019
@@ -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 @@ COPTS.mcount.c+=${${ACTIVE_CXX} == "gcc"
 
 
 # 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

Reply via email to