I'm trying to compile commotion packages against RAMIPS but it seems to be throwing an error while compiling oslrd. I assume I need to add -fPIC to the makefile somehow using cmake but I am unsure how to do it. Any help would be greatly appreciated.
make[5]: Entering directory /home/mnoth/openwrt/commotion/commotion-router/build/src/package_builder/feeds/commotion/packages/hostapd' /home/mnoth/openwrt/commotion/commotion-router/build/src/package_builder/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation R_MIPS_26 againstabuf_vappendf' can not be used when making a shared object; recompile with -fPIC
I'm trying to compile commotion packages against RAMIPS but it seems to be throwing an error while compiling oslrd. I assume I need to add -fPIC to the makefile somehow using cmake but I am unsure how to do it. Any help would be greatly appreciated.
make[5]: Entering directory
/home/mnoth/openwrt/commotion/commotion-router/build/src/package_builder/feeds/commotion/packages/hostapd' /home/mnoth/openwrt/commotion/commotion-router/build/src/package_builder/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/../../../../mipsel-openwrt-linux-uclibc/bin/ld: ../../src/cfgparser/cfgfile_gen.o: relocation R_MIPS_26 against
abuf_vappendf' can not be used when making a shared object; recompile with -fPIC