From 5273c636ab979f567c3cf3e24f6ac43be01d5d47 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 25 Nov 2018 16:57:51 +0100 Subject: [PATCH] Fix Linux/PPC64 runtime 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/ardour/cycles.h b/libs/ardour/ardour/cycles.h index dc1095db7b..eed3bb452d 100644 --- a/libs/ardour/ardour/cycles.h +++ b/libs/ardour/ardour/cycles.h @@ -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