Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123791 - xen-8885 does not compile with LDFLAGS in /etc/make.conf
Summary: xen-8885 does not compile with LDFLAGS in /etc/make.conf
Status: RESOLVED DUPLICATE of bug 65002
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Chris Bainbridge (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 00:24 UTC by Jan Oravec
Modified: 2006-02-23 06:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Oravec 2006-02-23 00:24:13 UTC
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'
Comment 1 Chris Bainbridge (RETIRED) gentoo-dev 2006-02-23 06:19:45 UTC
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 ***