I'm trying to compile an older version of Linux (3.4) on my Linux box with its current gcc-6.3. But running the make command shows errors like this:
scripts/kconfig/conf.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
And I haven't found any solution yet. It seems that the gcc requires using fPIC flag for some objects which the 3.4 kernel config files haven't asked so. Preferably I don't want to touch the kernel defaults. How should I ask the gcc to stop requiring this flag or to disable it?