summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2023-01-16 22:54:53 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-01-16 22:55:16 +0100
commit71eda122e8649df6f78e8972119c161c75a2056b (patch)
tree51f413373af828c612134abe4aaee484f2b6201b /configure.ac
parent35b7473e707a970e4b05c2b9ecd7749078cc869e (diff)
Fix shared library build on Solaris as requested by STR 3378
I couldn't test this though. Reference: https://www.fltk.org/str.php?L3378
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7fdff4cfb..65df603c8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -306,7 +306,7 @@ AS_IF([test "x$enable_shared" = xyes], [
GLDSONAME="libfltk_gl.so.$FL_DSO_VERSION"
IMGDSONAME="libfltk_images.so.$FL_DSO_VERSION"
CAIRODSONAME="libfltk_cairo.so.$FL_DSO_VERSION"
- DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
+ DSOCOMMAND="\$(CXX) \$(DSOFLAGS) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
AS_IF([test "x$libdir" != "x/usr/lib"], [
DSOLINK="-R$libdir"
])