• Aubrey Li's avatar
    xxHash: fix link error due to non-position-independent code · 63ca2fa8
    Aubrey Li authored
    Add PROPERTIES POSITION_INDEPENDENT_CODE option to fix the
    following error:
    
    /usr/bin/ld: ../../third_party/xxHash/libxxhash.a(xxhash.c.o):
    relocation R_X86_64_32S against `.rodata' can not be used when
    making a shared object; recompile with -fPIC
    
    Trying to link a non-PIC static library libxxhash.a into a
    .so shared library, which is not allowed. The object file
    xxhash.c.o must be recompiled with explicit -fPIC support.
    63ca2fa8
CMakeLists.txt 2.33 KB