Author: nwhitehorn
Date: Mon Jun 27 16:24:36 2011
New Revision: 223599
URL: http://svn.freebsd.org/changeset/base/223599

Log:
  Build Scrt.o on powerpc64. Its introduction on other platforms got lost
  during the period of time the powerpc64 port was on a project branch.

Modified:
  head/lib/csu/powerpc64/Makefile

Modified: head/lib/csu/powerpc64/Makefile
==============================================================================
--- head/lib/csu/powerpc64/Makefile     Mon Jun 27 15:13:12 2011        
(r223598)
+++ head/lib/csu/powerpc64/Makefile     Mon Jun 27 16:24:36 2011        
(r223599)
@@ -4,15 +4,14 @@
 
 SRCS=          crt1.c crti.S crtn.S
 OBJS=          ${SRCS:N*.h:R:S/$/.o/g}
-OBJS+=         gcrt1.o
-CFLAGS+=       -Wall -Wno-unused \
-               -I${.CURDIR}/../common \
+OBJS+=         Scrt1.o gcrt1.o
+CFLAGS+=       -I${.CURDIR}/../common \
                -I${.CURDIR}/../../libc/include
 
 all: ${OBJS}
 
 CLEANFILES=    ${OBJS}
-CLEANFILES+=   crt1.s gcrt1.s
+CLEANFILES+=   crt1.s gcrt1.s Scrt1.s
 
 # See the comment in lib/csu/common/crtbrand.c for the reason crt1.c is not
 # directly compiled to .o files.
@@ -31,6 +30,13 @@ gcrt1.s: crt1.c
 gcrt1.o: gcrt1.s
        ${CC} ${CFLAGS} -c -o ${.TARGET} gcrt1.s
 
+Scrt1.s: crt1.c
+       ${CC} ${CFLAGS} -fPIC -DPIC -S -o ${.TARGET} ${.CURDIR}/crt1.c
+       sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' ${.TARGET}
+
+Scrt1.o: Scrt1.s
+       ${CC} ${CFLAGS} -c -o ${.TARGET} Scrt1.s
+
 realinstall:
        ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
            ${OBJS} ${DESTDIR}${LIBDIR}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to