Summary: | sys-libs/slang-1.4.9-r2 ebuild fails to handle cross-compilation correctly | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jack Kelly <endgame.dos> |
Component: | [OLD] Library | Assignee: | CJK Team <cjk> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | liquidx |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Suggested fixed ebuild |
Description
Jack Kelly
2007-07-05 10:42:01 UTC
Created attachment 123943 [details] Suggested fixed ebuild A couple of changes in src_compile. Diff against the slang-1.4.9-r2 ebuild: 5c5 < inherit eutils --- > inherit eutils toolchain-funcs 47a48,53 > # The configure script gets the compiler wrong when cross > # compiling. Change the Makefile definition of CC and ELF_CC to > # allow environment overrides. > sed -e '/^CC/s:=:?=:' \ > -e '/^ELF_CC/s:=:?=:' \ > -i "${S}/src/Makefile.in" || die "sed failed" 48a55,56 > export CC="$(tc-getCC)" > export ELF_CC="$(tc-getCC)" seems to be fixed in slang 2.1.3? test and reopen if it fails You are compiling SLANG with the following compiler configuration: CC = x86_64-pc-linux-gnu-gcc CFLAGS = -O2 -pipe -march=k8 LDFLAGS = -Wl,-O1,--as-needed -Wl,-export-dynamic ELF_CC = $(CC) ELF_LINK = $(CC) $(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,$(VERSION_SCRIPT) -Wl,-soname,$(ELFLIB_MAJOR) ELF_CFLAGS= $(CFLAGS) -fPIC It's calling the correct compiler now. Thanks Samuli. I don't know if the bug should be VERIFIED or CLOSED, so I'll leave it. |