From d38a0c43b6ca7f5acf3cbd2c99e1911bac72e5a8 Mon Sep 17 00:00:00 2001 From: "Bruno D. Rodrigues" Date: Mon, 13 Jan 2014 17:31:56 +0000 Subject: [PATCH] use version-script only for ELF linux --- src/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) 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