diff --git a/src/Makefile.am b/src/Makefile.am index bd79af92..4fb60cdc 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -180,7 +180,11 @@ else if ON_ANDROID libzmq_la_LDFLAGS = -avoid-version -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@ else +if ON_LINUX libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@ -Wl,--version-script=libzmq.vers +else +libzmq_la_LDFLAGS = -version-info @LTVER@ @LIBZMQ_EXTRA_LDFLAGS@ -Wl +endif endif endif