When I make without any option, an error occured.
relocation R_X86_64_32S against.rodata' can not be used when making a PIE object; recompile with -fPIC`
Comment From: madolson
That's weird, have you tried with REDIS_CFLAGS='-fPIC' make ? It might also be that by default your building on a system that doesn't support position independent executables (pie), and then you might try REDIS_LDFLAGS="-no-pie" make ?
It seems like you are building against a weird system, would you mind documenting what you are building on?
Comment From: Arcmoon-Hu
That's weird, have you tried with
REDIS_CFLAGS='-fPIC' make? It might also be that by default your building on a system that doesn't support position independent executables (pie), and then you might tryREDIS_LDFLAGS="-no-pie" make?It seems like you are building against a weird system, would you mind documenting what you are building on?
Comment From: Usigned
i encountered with this error too. I tried REDIS_LDFLAGS="-no-pie" make and it works. Here is the system info of my /proc/version file
Linux version 4.15.0-66-generic (buildd@lgw01-amd64-044) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019