as compilers targeting ELF does not add the leading "_" to symbol names,
while clang on OSX always do this.
and remove the underscore from the symbol name when generating the
function name, as the compiler will add it back for us.
Signed-off-by: Kefu Chai <kchai@redhat.com>
else
func_prefix="(lib)?${bind}"
fi
- nm $lib_fn | grep -E "U ${func_prefix}" | \
- awk '{ print "void "$2"(void) {}" }' | \
+ nm $lib_fn | grep -E "U (_)?${func_prefix}" | \
+ awk '{ gsub(/^_/,"",$2); print "void "$2"(void) {}" }' | \
gcc -shared -o $vdir/lib/lib${bind}.so.1 -xc -
if [ ${bind} != rados ]; then
rm -f $TOPDIR/src/pybind/${bind}/rados.pxd