ppc64el-new-archdef-name
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sat, 24 Jan 2015 22:06:27 +0000 (22:06 +0000)
committerSébastien Villemot <sebastien@debian.org>
Sat, 24 Jan 2015 22:06:27 +0000 (22:06 +0000)
Gbp-Pq: Name ppc64el-new-archdef-name.patch

CONFIG/src/SpewMakeInc.c

index 2a4c2c74a8cf54dc9854665e8396f58336c96fc2..af563cd0a16ae725a0f5c229a37e11c9eb0fac4e 100644 (file)
@@ -550,6 +550,10 @@ int main(int nargs, char **args)
    fprintf(fpout, "#  -------------------------------------------------\n");
    fprintf(fpout, "   ARCH = %s", machnam[mach]);
    fprintf(fpout, "%d", ptrbits);
+   /* for ppc64le archi add 'LE' characters */
+   #if defined(__powerpc64__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
+      fprintf(fpout, "%s", "LE");
+   #endif
    if (ISAX)
       fprintf(fpout, "%s", ISAXNAM[ISAX]);
    if (!USEIEEE)