You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at Build page, it seems there is no any option to compile tbox as shared library, so I changed set_kind("static") to set_kind("shared") in all .lua build files, however, when I try to compile it with my changes, it is stopped with the following error:
...
[49%]: compiling.release src/tbox/platform/arch/context.S
[50%]: linking.release libtbox.so
error: /usr/bin/ld: pkg/polarssl.pkg/lib/linux/x86_64/libpolarssl.a(ctr_drbg.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
pkg/polarssl.pkg/lib/linux/x86_64/libpolarssl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
I tried to add -fPIC via add_cxflags("-fPIC"), but got same error.
So, how to compile tbox using official mechanisms?
Hello masters,
Looking at Build page, it seems there is no any option to compile tbox as shared library, so I changed
set_kind("static")
toset_kind("shared")
in all.lua
build files, however, when I try to compile it with my changes, it is stopped with the following error:I tried to add
-fPIC
viaadd_cxflags("-fPIC")
, but got same error.So, how to compile tbox using official mechanisms?
Thank you!
My environment:
The text was updated successfully, but these errors were encountered: