On Sat, May 09 2020, Charlene Wendling <[email protected]> wrote:
> Hi,
>
>> http://build-failures.rhaalovely.net/powerpc/2020-04-09/plan9/drawterm.log
>
> My first idea was to drop the argument passed to clang's integrated
> assembler, but later i've found that drawterm uses Darwin assembly
> syntax, that is not supported by clang's integrated assembler.
>
> With the below diff i can build drawterm on macppc. No REVISION bump
> needed, it has never been built since we switched the arch to clang.
>
> OK?
ok
(tree still locked AFAIK)
> Charlène.
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/plan9/drawterm/Makefile,v
> retrieving revision 1.14
> diff -u -p -u -p -r1.14 Makefile
> --- Makefile 12 Dec 2019 03:28:26 -0000 1.14
> +++ Makefile 9 May 2020 09:58:50 -0000
> @@ -29,6 +29,11 @@ MAKE_FLAGS= CC="${CC}" \
> PORTS_CFLAGS="${CFLAGS}" \
> PORTS_LDFLAGS="${LDFLAGS}"
>
> +# Uses deprecated Darwin assembly syntax that clang's assembler does not
> support
> +.if ${MACHINE_ARCH:Mpowerpc}
> +CFLAGS += -fno-integrated-as
> +.endif
> +
> do-install:
> ${INSTALL_PROGRAM} ${WRKDIST}/drawterm ${PREFIX}/bin
> ${INSTALL_DATA} ${WRKDIST}/drawterm.1 ${PREFIX}/man/man1
>
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE