in reply to Re^3: Par pp DBD::mySQL macOS
in thread Par pp DBD::mySQL macOS

Good point, Marto! It seems to work. I had to add some other libraries since they are - I guess - expected by the mySQL library

pp -x -o script --link=/usr/local/opt/mysql/lib/libmysqlclient.21.dyli +b --link=/usr/local/opt/openssl/lib/libssl.1.0.0.dylib --link=/usr/lo +cal/opt/openssl/lib/libcrypto.1.0.0.dylib script.pl

The executable created this way doesn't complain on a second machine.