Package: libbsd Version: 0.6.0-1 Severity: normal Tags: upstream patch Justification: fails to build from source Usertags: openrisc
Dear Maintainer, Attached is a patch to enable libbsd to build on or1k. *** patches/libbsd-0.6.0.patch --- libbsd-0.6.0.orig/src/local-elf.h +++ libbsd-0.6.0/src/local-elf.h @@ -179,6 +179,12 @@ #endif #define ELF_TARG_DATA ELFDATA2MSB +#elif defined(__or1k__) + +#define ELF_TARG_MACH EM_OPENRISC +#define ELF_TARG_CLASS ELFCLASS32 +#define ELF_TARG_DATA ELFDATA2MSB + #else #error Unknown ELF machine type -- System Information: Debian Release: 7.2 Architecture: amd64 (x86_64) Foreign Architectures: or1k Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/20140126150055.8459.33167.reportbug@openrisc-lab.c.bluecmd0.internal

