[Libguestfs] [PATCH] Fix build on HPPA

Pino Toscano
2014-05-09T09:48:43Z

From: Helge Deller <deller@gmx.de>

The HPPA assembler syntax is slightly different than the GNU as to keep
compatibility to the HP-UX assembler.

Reported in https://bugs.debian.org/742797.
---
 src/bin2s.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin2s.pl b/src/bin2s.pl
index 1b1c253..0f892f8 100755
--- a/src/bin2s.pl
+++ b/src/bin2s.pl
@@ -43,7 +43,11 @@ print $ofh <<"EOF";

 _binary_${infile}_end:

+#if defined(__hppa__)
+\t_binary_${infile}_size: .equ $sz
+#else
 \t.equ _binary_${infile}_size, $sz
+#endif
 EOF

 close $ofh;
--
1.9.0