Fix linker segfault adding rpath to sharedlib

If the shared library is a relative path, dirname will return null causing a segfault. In the case I debugged, the current directory was already in RPATH so just ignoring this case seems a reasonable fix. After this fix "make" and "make test" pass for mimalloc.

Closes #13766
30aeb41a19Ganesan Rajagopal committed on 3/19/2023, 4:42:27 PM· committed by Jakub Konkaparent2fce991
1 file changedLine totals unavailable