How to build a statically linked appl with PIC enabled static library?
Hi,
I've a statically linked application (sample.a) and I want to build it with a third party library(third-party-lib.a) which is PIC enabled. Note that the third party library is NOT a shared library. It is a PIC enabled static library.
Can anyone please suggest how do I do this?
I tried linking my library with a third party library like we usually link static libraries but it gives me an error:
/usr/lib/libc_nonshared.a(stack_chk_fail_local.oS): In function `__stack_chk_fail_local':
(.text+0x10): undefined reference to `__stack_chk_fail'
Thanks in advance.