Don't use rpath on Windows

Windows does not support rpath, and while GNU ld just ignores it, lld
fails with the flag.

FossilOrigin-Name: dffa232bd2032733a473c6af73a4875e4543fcccb4c8f22569fdd38bea0fc4de
This commit is contained in:
Jonathan Schleifer 2021-09-04 10:24:14 +00:00
parent 32463020dd
commit 5288efb30d

View file

@ -209,9 +209,6 @@ AC_DEFUN([BUILDSYS_SHARED_LIB], [
LIB_LDFLAGS_INSTALL_NAME='' LIB_LDFLAGS_INSTALL_NAME=''
LIB_PREFIX='' LIB_PREFIX=''
LIB_SUFFIX='${LIB_MAJOR}.dll' LIB_SUFFIX='${LIB_MAJOR}.dll'
AS_IF([test x"$enable_rpath" != x"no"], [
LDFLAGS_RPATH='-Wl,-rpath,${libdir}'
])
PLUGIN_CFLAGS='' PLUGIN_CFLAGS=''
PLUGIN_LDFLAGS='-shared' PLUGIN_LDFLAGS='-shared'
PLUGIN_SUFFIX='.dll' PLUGIN_SUFFIX='.dll'