Greetings all, In order to get cjdns to cross-compile I had to enable -fPIC for the nacl package in the makefile. I have included my patch below. I am under the impression that including this flag is a standard practice for many routines like this. Please let me know if I am going about this correctly or if there is a better method. Thank you.
-Chris Patch: Index: feeds/packages/libs/nacl/Makefile =================================================================== --- feeds/packages/libs/nacl/Makefile (revision 34672) +++ feeds/packages/libs/nacl/Makefile (working copy) @@ -30,7 +30,7 @@ cd $(PKG_BUILD_DIR); \ chmod +x do-openwrt; \ CC="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ + CFLAGS="-fPIC $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ AR="$(TARGET_CROSS)ar" \ RANLIB="$(TARGET_CROSS)ranlib" \ ./do-openwrt \ _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel