mirror of https://github.com/ericonr/sndio.git
Unbreak SONAME on Linux, noticed by and help from Peter
Piwowarski <peterjpiwowarski at gmail.com>.
This commit is contained in:
parent
ed5fe4d755
commit
f76d93d479
|
@ -40,6 +40,7 @@ umidi=no # do we want support for umidi ?
|
|||
precision=16 # aucat/sndiod arithmetic precision
|
||||
user=_sndio # non-privileged user for sndio daemon
|
||||
libbsd=no # use libbsd?
|
||||
so_ldflags= # extra linker flags for shared libs
|
||||
unset vars # variables passed as arguments
|
||||
unset bindir # path where to install binaries
|
||||
unset datadir # path where to install doc
|
||||
|
@ -57,6 +58,7 @@ case `uname` in
|
|||
alsa=yes
|
||||
ldadd="-lrt"
|
||||
user=sndiod
|
||||
so_ldflags="-Wl,-soname=libsndio.so.\${MAJ}.\${MIN}"
|
||||
so_link="libsndio.so"
|
||||
defs='-D_GNU_SOURCE -DHAVE_SOCK_CLOEXEC -DHAVE_CLOCK_GETTIME'
|
||||
;;
|
||||
|
@ -253,6 +255,7 @@ do
|
|||
-e "s:@ldadd@:$ldadd:" \
|
||||
-e "s:@so@:$so:" \
|
||||
-e "s:@so_link@:$so_link:" \
|
||||
-e "s:@so_ldflags@:$so_ldflags:" \
|
||||
-e "s:@vars@:${vars}:" \
|
||||
-e "s:@precision@:$precision:" \
|
||||
-e "s:@user@:$user:" \
|
||||
|
|
|
@ -14,7 +14,7 @@ LDADD = @ldadd@
|
|||
SO_CFLAGS = -fPIC
|
||||
|
||||
# extra compiler flags to produce a shared library with the given name
|
||||
SO_LDFLAGS = -shared #-Wl,-soname=libsndio.so.${MAJ}.${MIN}
|
||||
SO_LDFLAGS = -shared @so_ldflags@
|
||||
|
||||
# variables defined on configure script command line (if any)
|
||||
@vars@
|
||||
|
|
Loading…
Reference in New Issue