--- src/Makefile.in.orig	2015-01-19 04:24:34.000000000 +1100
+++ src/Makefile.in	2019-11-12 06:39:34.000000000 +1100
@@ -331,7 +331,7 @@
 SUBDIRS = modules
 ui_SOURCES = ui.c ui.h
 ui_CFLAGS = -Imodules
-@SOLARIS_FALSE@ui_LDFLAGS = -R$(pkglibdir) -Wl,--export-dynamic @DLOPEN_LIBS@
+@SOLARIS_FALSE@ui_LDFLAGS = -Wl,-export_dynamic @DLOPEN_LIBS@
 @SOLARIS_TRUE@ui_LDFLAGS = -R$(pkglibdir) @DLOPEN_LIBS@
 EXTRA_ui_SOURCES = err.c strsep.c safe_strncat.c
 all: all-recursive
