Fix Linux/PPC64 runtime
authorRobin Gareus <robin@gareus.org>
Sun, 25 Nov 2018 15:57:51 +0000 (16:57 +0100)
committerRobin Gareus <robin@gareus.org>
Sun, 25 Nov 2018 15:57:51 +0000 (16:57 +0100)
This fixes an error while loading shared libraries: libardour.so

  R_PPC64_ADDR32 reloc at 0x... for symbol `' out of range

Treating a local as an immediate value in asm code makes the library
non-relocatable.

libs/ardour/ardour/cycles.h

index dc1095db7b60939122a07b74f9e5629b92781f98..eed3bb452db5b1f2d71245c150d06b27e774eaea 100644 (file)
@@ -70,6 +70,14 @@ static inline cycles_t get_cycles (void)
 }
 #endif
 
+#elif defined(__powerpc64__)
+
+static inline cycles_t get_cycles(void)
+{
+#warning You are compiling libardour on a platform for which ardour/cycles.h needs work
+       return 0;
+}
+
 #elif defined(__powerpc__)
 
 #define CPU_FTR_601                    0x00000100