Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2020 17:34:11 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r523823 - head/emulators/qemu/files
Message-ID:  <202001221734.00MHYBCC045603@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Wed Jan 22 17:34:11 2020
New Revision: 523823
URL: https://svnweb.freebsd.org/changeset/ports/523823

Log:
  emulators/qemu: fix build on powerpc64 elfv2
  
  Clang doesn't like -mbig:
  cc -mbig -c -o spapr-rtas.o spapr-rtas.S
  cc: error: unknown argument: '-mbig'
  
  This file doesn't seem to be built on amd64, so removing -mbig doesn't cause a problem there. I also successfully built on powerpc64 elfv1 and it also builds.
  
  PR:		243188
  Approved by:	bofh (maintainer timeout)

Added:
  head/emulators/qemu/files/patch-pc-bios_spapr-rtas_Makefile   (contents, props changed)

Added: head/emulators/qemu/files/patch-pc-bios_spapr-rtas_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/emulators/qemu/files/patch-pc-bios_spapr-rtas_Makefile	Wed Jan 22 17:34:11 2020	(r523823)
@@ -0,0 +1,15 @@
+--- pc-bios/spapr-rtas/Makefile.orig	2020-01-08 10:52:05 UTC
++++ pc-bios/spapr-rtas/Makefile
+@@ -15,10 +15,10 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/spapr-rtas)
+ build-all: spapr-rtas.bin
+ 
+ %.o: %.S
+-	$(call quiet-command,$(CCAS) -mbig -c -o $@ $<,"CCAS","$(TARGET_DIR)$@")
++	$(call quiet-command,$(CCAS) -c -o $@ $<,"CCAS","$(TARGET_DIR)$@")
+ 
+ %.img: %.o
+-	$(call quiet-command,$(CC) -nostdlib -mbig -o $@ $<,"Building","$(TARGET_DIR)$@")
++	$(call quiet-command,$(CC) -nostdlib -o $@ $<,"Building","$(TARGET_DIR)$@")
+ 
+ %.bin: %.img
+ 	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"Building","$(TARGET_DIR)$@")



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001221734.00MHYBCC045603>