On 09/19/2016 10:45 PM, Leopold Palomo-Avellaneda wrote:
> Hi,
> 
> 
> I'm trying to build a shared library, using the posix skin with Xenomai 
> 3.0.3. 
> I have built xenomai with:
> 
> '--with-core=cobalt' '--enable-smp' '--enable-pshared' '--enable-fortify' 
> '--enable-shared
> 
> I built withour any error. However, when I try to build a library (shared) 
> that uses xenomai I got this error:
> 
> /usr/bin/ld: /usr/xenomai/lib/xenomai/bootstrap.o: relocation R_X86_64_32 
> against `.rodata.str1.1' can not be used when making a shared object; 
> recompile with -fPIC
> 
> Static libs build perfect. 
> 
> Any idea,
> 
> Best regards,
> 
> Leopold
> 
> 

You may want to check --auto-init-solib from xeno-config:

http://www.xenomai.org/documentation/xenomai-3/html/man1/xeno-config/index.html

-- 
Philippe.

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to