I have the following LDFLAGS in /etc/make.conf: LDFLAGS="-Wl,-O1 -Wl,--sort-common" Compilation of XEN fails with: ld -Wl,-O1 -Wl,--sort-common -m elf_x86_64 -m elf_x86_64 -r -o common.o acm_ops.o bitmap.o dom0_ops.o domain.o elf.o event_channel.o grant_table.o kernel.o keyhandler.o lib.o memory.o multicall.o page_alloc.o rangeset.o sched_bvt.o sched_sedf.o schedule.o softirq.o string.o symbols.o timer.o trace.o vsprintf.o xmalloc.o ld: unrecognized option '-Wl,-O1' ld: use the --help option for usage information The problem is that the LDFLAGS in /etc/make.conf are to be used with 'gcc' instead of 'ld' so it contains '-Wl,' wrapper which is not understood by 'ld'
Thanks for the report. It's a dupe of a previous bug report; if you'd like it fixed, send a patch upstream so that the Xen makefiles use LDFLAGS friendly calls. Or report it at bugzilla.xensource.com. *** This bug has been marked as a duplicate of 65002 ***