pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56493: binutils 2.37 on Solaris 10 sparc64 build issue (fails to detect endianess)



>Number:         56493
>Category:       pkg
>Synopsis:       binutils 2.37 on Solaris 10 sparc64 build issue (fails to detect endianess)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 11 13:40:00 +0000 2021
>Originator:     Claes Nästén
>Release:        trunk 2021-11-02
>Organization:
>Environment:
SunOS 5.10 sun4u sparc SUNW,Sun-Blade-1500
>Description:
Building binutils-2.37 on Solaris 10 sparc64 gives me an error when trying to include and use include/plugin-api.h where it fails to detect the endian

With this patch it compiles, and is able to compile GCC8 using gas from binutils instead of the /usr/sfw/bin/gas version.
>How-To-Repeat:
Try to build binutils on Solaris 10 sparc
>Fix:
$NetBSD$

--- include/plugin-api.h.orig   2021-11-09 06:55:27.762048000 +0000
+++ include/plugin-api.h
@@ -62,6 +62,12 @@
 /* Include all necessary header files based on target.  */
 #if defined(__SVR4) && defined(__sun)
 #include <sys/byteorder.h>
+#ifdef _LITTLE_ENDIAN
+#define PLUGIN_LITTLE_ENDIAN 1
+#endif
+#ifdef _BIG_ENDIAN
+#define PLUGIN_BIG_ENDIAN 1
+#endif
 #endif
 #if defined(__FreeBSD__) || defined(__NetBSD__) || \
     defined(__DragonFly__) || defined(__minix)


Home | Main Index | Thread Index | Old Index