Source-Changes-HG archive

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

[src/trunk]: src/share/mk Sun Workshop C 5.0 objects to generating object fil...



details:   https://anonhg.NetBSD.org/src/rev/e74fd7d4958f
branches:  trunk
changeset: 525992:e74fd7d4958f
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Tue Apr 23 00:15:45 2002 +0000

description:
Sun Workshop C 5.0 objects to generating object files with suffixes other than
.o.  Work around this by generating host object files with a .lo.o suffix and
then renaming to .lo.

diffstat:

 share/mk/bsd.sys.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 8ff56214c399 -r e74fd7d4958f share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Apr 23 00:13:50 2002 +0000
+++ b/share/mk/bsd.sys.mk       Tue Apr 23 00:15:45 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.sys.mk,v 1.75 2002/04/12 05:08:53 lukem Exp $
+#      $NetBSD: bsd.sys.mk,v 1.76 2002/04/23 00:15:45 bjh21 Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -90,8 +90,11 @@
        ${COMPILE.m} ${.IMPSRC}
 
 # Host-compiled C objects
+# The intermediate step is necessary for Sun CC, which objects to calling
+# object files anything but *.o
 .c.lo:
-       ${HOST_COMPILE.c} -o ${.TARGET} ${.IMPSRC}
+       ${HOST_COMPILE.c} -o ${.TARGET}.o ${.IMPSRC}
+       mv ${.TARGET}.o ${.TARGET}
 
 # Lex
 LPREFIX?=      yy



Home | Main Index | Thread Index | Old Index