-
Notifications
You must be signed in to change notification settings - Fork 110
Description
Not sure if this is open for outside feedback but just in case: I was unable to build this with the latest gcc 7.2 (ArchLinux) due to linker errors:
/usr/bin/ld: ../../src/reference/libdrawsvgref.a(viewport.cpp.o): relocation R_X86_64_32 against .bss' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: ../../src/reference/libdrawsvgref.a(texture.cpp.o): relocation R_X86_64_32 against symbol _ZSt4cerr@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../src/reference/libdrawsvgref.a(software_renderer.cpp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
I guess the reference code for the libdrawsvgref would need to be recompiled with an -fPIC flag.
FWIW, I was able to build fine with gcc 5.4 (ubuntu 16.04)