Blame jemalloc/include/jemalloc/jemalloc_rename.sh

Packit 345191
#!/bin/sh
Packit 345191
Packit 345191
public_symbols_txt=$1
Packit 345191
Packit 345191
cat <
Packit 345191
/*
Packit 345191
 * Name mangling for public symbols is controlled by --with-mangling and
Packit 345191
 * --with-jemalloc-prefix.  With default settings the je_ prefix is stripped by
Packit 345191
 * these macro definitions.
Packit 345191
 */
Packit 345191
#ifndef JEMALLOC_NO_RENAME
Packit 345191
EOF
Packit 345191
Packit 345191
for nm in `cat ${public_symbols_txt}` ; do
Packit 345191
  n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
Packit 345191
  m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
Packit 345191
  echo "#  define je_${n} ${m}"
Packit 345191
done
Packit 345191
Packit 345191
cat <
Packit 345191
#endif
Packit 345191
EOF