LDPL generated binaries are not static
Created by: dvkt
I tried compiling a simple LDPL program on a linux-arm
machine and, while it compiled and ran, it wouldn't run on a different linux-arm
machine. I got this error:
$ ./hi-arm
./hi-arm: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./hi-arm)
Adding compile_line+=" -static-libgcc -static-libstdc++ ";
to ldpl.cpp
and rebuilding the compiler fixed it:
$ ./hi-arm
hi, arm!
However the binary size balloons from 90K to 1.5M.
Should LDPL programs be static, like the compiler itself? I think so yea?