Here is just a quick little script that I made to aid me in porting. When you encounter a missing symbol run this script, followed by the missing symbol and it will search through the libraries in /usr/lib /usr/local/lib and /var/sdk/usr/lib and report back any libraries that contain that symbol. From there you just need to change the LDFLAGS to include that library and you're all good (in theory) anyways, with out further todo:
#!/bin/bash
function search {
for file in *; do
output=$(nm $file 2>/dev/null | grep "$1" )
if [ "$output" != "" ]; then
echo "Found Symbol in $PWD/$file"
fi
done
}
cd /usr/lib
search $1
cd /usr/local/lib
search $1
cd /var/sdk/usr/lib
search $1
Note: This requires that odcctools is installed.