I am trying to compile openVPN for Apple Silicon + Intel, with the compilation process running on Intel for the moment, but I would like to make it compilable on Apple Silicon too. I have created a #!/bin/bash script that performs the whole process, but I still have one hard coded path in the script. Specifically it is:
./configure OPENSSL_LIBS="-L/Users/fofo/Desktop/Fat_OpenVPN/Fat_openSSL/OpenSSLFatLibraries -lssl -lcrypto"
I have tried for example:
./configure OPENSSL_LIBS="-L../Fat_openSSL/OpenSSLFatLibraries -lssl -lcrypto"
but it does not work. Everything works with the hard coded paths. I have tried everything, but I don't succeed to replace the hard coded path with a relative one that would make the script to work when its enclosing folder path is not specified. When writing the script, for the moment I have made the assumption that it must be run with the working directory set to its parent folder. Any help is greatly appreciated. Thanks