commit:     383e767b937cad1a06caeb69d2140c5eda0533b3
Author:     Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Fri Jan 15 01:03:32 2016 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Fri Jan 15 01:03:42 2016 +0000
URL:        https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=383e767b

sys-boot/grub-invaders: Fix compilation

 sys-boot/grub-invaders/files/invaders-1.0.0-makefile  | 5 +++--
 sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild | 6 +++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile 
b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile
index 8a34f17..bfb33a8 100644
--- a/sys-boot/grub-invaders/files/invaders-1.0.0-makefile
+++ b/sys-boot/grub-invaders/files/invaders-1.0.0-makefile
@@ -1,13 +1,14 @@
-# Copyright (C) 2015 Sebastian Pipping <[email protected]>
+# Copyright (C) 2016 Sebastian Pipping <[email protected]>
 # Licensed under GPL v2 or later.
 
 OBJCOPY = objcopy
 
 CPPFLAGS = -I.
 CFLAGS += -ffreestanding -m32 -nostdinc -nostdlib -I. -W -Wall
+ASFLAGS = $(CFLAGS)
 LDFLAGS += -Wl,-N -Wl,-Ttext -Wl,100000 -Wl,--build-id=none
 
-O_FILES = $(patsubst %.c,%.o,$(wildcard *.c))
+O_FILES = $(patsubst %.S,%.o,$(wildcard *.S)) $(patsubst %.c,%.o,$(wildcard 
*.c))
 
 all: invaders
 

diff --git a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild 
b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild
index 5732efd..3bdca7b 100644
--- a/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild
+++ b/sys-boot/grub-invaders/grub-invaders-1.0.0_p12.ebuild
@@ -4,7 +4,7 @@
 
 EAPI="5"
 
-inherit versionator eutils
+inherit toolchain-funcs versionator eutils
 
 MY_PN=invaders
 MY_PV="$(get_version_component_range 1-3)"
@@ -28,6 +28,10 @@ src_prepare() {
        rm ${MY_PN} || die
 }
 
+src_compile() {
+       emake CC=$(tc-getCC)
+}
+
 src_install() {
        dodoc README
 

Reply via email to