pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/48823 (building xtrs on big endian arch's fails; requires var to be set)
The following reply was made to PR pkg/48823; it has been noted by GNATS.
From: Benedek Gergely <i3enedek%neomailbox.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/48823 (building xtrs on big endian arch's fails; requires
var to be set)
Date: Tue, 20 May 2014 15:39:48 +0000
It does not work:
===> Building for xtrs-4.9dnb3
gcc -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include
-DDEFAULT_ROM='"/usr/pkg/lib/xtrs/level2rom.hex"'
-DDEFAULT_ROM3='"/usr/pkg/lib/xtrs/romimage.m3"'
-DDEFAULT_ROM4P='"/usr/pkg/lib/xtrs/romimage.m4p"' -DREADLINE
-DDISKDIR='"."' -DAPPDEFAULTS='"/usr/pkg/lib/X11/app-defaults"'
-DKBWAIT -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -c z80.c
/usr/pkgsrc/mk/endian.mk needs a poke:
--- ./endian.mk 2014-05-20 15:26:52.000000000 +0000
+++ /root/endian.mk
@@ -32,13 +32,11 @@ MACHINE_ENDIAN!=
\
${ECHO} "\# include <standards.h>"; \
${ECHO} "\#endif"; \
${ECHO} "\#include <${_ENDIAN_H}>"; \
- ${ECHO} "\#ifndef BYTE_ORDER"; \
- ${ECHO} "\#ifdef _BIG_ENDIAN"; \
+ ${ECHO} "\#if BYTE_ORDER == BIG_ENDIAN"; \
${ECHO} "\#define BYTE_ORDER 4321"; \
${ECHO} "\#else"; \
${ECHO} "\#define BYTE_ORDER 1234"; \
${ECHO} "\#endif"; \
- ${ECHO} "\#endif"; \
${ECHO} "BYTE_ORDER"; } | ${CCPATH:U${CC}} -E - | \
{ while read line; do \
case $$line in \
Then it works:
===> Building for xtrs-4.9dnb3
gcc -O2 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include
-Dbig_endian -DDEFAULT_ROM='"/usr/pkg/lib/xtrs/level2rom.hex"'
-DDEFAULT_ROM3='"/usr/pkg/lib/xtrs/romimage.m3"'
-DDEFAULT_ROM4P='"/usr/pkg/lib/xtrs/romimage.m4p"' -DREADLINE
-DDISKDIR='"."' -DAPPDEFAULTS='"/usr/pkg/lib/X11/app-defaults"'
-DKBWAIT -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include -c z80.c
Home |
Main Index |
Thread Index |
Old Index