Is there a command line option equivalent to LD_LIBRARY_PATH for linking?
I build native via native-maven-plugin which lack support for setting environment variables and setting prior to maven breaks my other modules. I need to either
- find an alternative to native-maven-plugin (long term solution)
- find a command line option to add required path to linker search
I've tried:
- --library-path
- -L
- --rpath-link, --rpath
- -R
Each time I continue to get the following:
/usr/bin/ld: warning: libsc_fnt.so, needed by
...lib/libsc_ex.so, not found (try using -rpath or -rpath-link)