[Looks like I'll soon be mostly suspending my FreeBSD explorations for a 
notable time again. So this completes my notes for the subject and related 
material. It includes only what I concluded should be changed.]

The following are all appropriate Makefile.inc changes as far as I can tell. 
The i386 case uses LD_FLAGS instead and is commented indicating that it uses 
${LD} directly and does not use ${CC}. So chaining it is not appropriate.

# svnlite diff sys/boot/ofw/Makefile.inc sys/boot/powerpc/Makefile.inc 
sys/boot/uboot/Makefile.inc
Index: sys/boot/ofw/Makefile.inc
===================================================================
--- sys/boot/ofw/Makefile.inc   (revision 281630)
+++ sys/boot/ofw/Makefile.inc   (working copy)
@@ -2,7 +2,7 @@
 
 .if ${MACHINE_ARCH} == "powerpc64"
 CFLAGS+=       -m32 -mcpu=powerpc
-LDFLAGS+=      -m elf32ppc_fbsd
+LDFLAGS+=      -Wl,-m -Wl,elf32ppc_fbsd
 .endif
 
 .include "../Makefile.inc"
Index: sys/boot/powerpc/Makefile.inc
===================================================================
--- sys/boot/powerpc/Makefile.inc       (revision 281630)
+++ sys/boot/powerpc/Makefile.inc       (working copy)
@@ -2,7 +2,7 @@
 
 .if ${MACHINE_ARCH} == "powerpc64"
 CFLAGS+=       -m32 -mcpu=powerpc
-LDFLAGS+=      -m elf32ppc_fbsd
+LDFLAGS+=      -Wl,-m -Wl,elf32ppc_fbsd
 .endif
 
 .include "../Makefile.inc"
Index: sys/boot/uboot/Makefile.inc
===================================================================
--- sys/boot/uboot/Makefile.inc (revision 281630)
+++ sys/boot/uboot/Makefile.inc (working copy)
@@ -2,7 +2,7 @@
 
 .if ${MACHINE_ARCH} == "powerpc64"
 CFLAGS+=       -m32 -mcpu=powerpc
-LDFLAGS+=      -m elf32ppc_fbsd
+LDFLAGS+=      -Wl,-m -Wl,elf32ppc_fbsd
 .endif
 
 .include "../Makefile.inc"



===
Mark Millard
markmi at dsl-only.net

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "[email protected]"

Reply via email to