When I try to compile libgdiplus, I get the following error message. I use CentOS and don't have permission to run yum to install packages. My only option is to compile it from the source.
/usr/bin/ld: .libs/image.o: relocation R_X86_64_PC32 against `gdip_getcodecinfo_gif' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[2]: * [libgdiplus.la] Error 1