Skip to content
Prev 6455 / 63424 Next

No SONAME in libRmath.so in src/nmath/standalone

Upon the suggestion of a Debian user, I am looking into also shipping
libRmath.{a,so}.  Building from R-1.3.1 sources, the resulting libRmath.so
is not recognised as shared library (objdump -p does not show SONAME).
Now, the Makefile hints at libtool usage, but I do not understand how to
enable this. 

However, I used the existing but empty option field libRmath_la_LDFLAGS
to pass the required info to gcc:
       libRmath_la_LDFLAGS=-Wl,-soname,libRmath.so.0

This leads to two questions:

1) Did I overlook anything?  Is there another (better?) way of doing this?

2) Is it ok with R-core if I use 0 as the SO number? Or should it be 1?

Thanks,  Dirk