fix: libcow-0.1.4

added SONAME for debug targets
master
Avril 4 years ago
parent a1b5abadd5
commit 99cb419a3f
Signed by: flanchan
GPG Key ID: 966FE03CC0E0B199

@ -25,21 +25,18 @@ src_compile() {
if use debug; then
CFLAGS=""
CXXFLAGS=""
LDFLAGS=""
LDFLAGS="-Wl,-soname,${PN}.so.$(ver_cut 1)"
fi
TARGET_SPEC_FLAGS=$(usex debug yes no) emake STRIP=: $(usev debug)
use debug && ( mv -f ${PN}{-debug,}.so &&
mv -f ${PN}.so{,.${PV}} &&
mv -f ${PN}{-debug,}.a || die "failed to move debug targets into place")
}
src_install() {
dolib.a ${PN}.a
if use debug; then
dolib.so ${PN}.so
else
dolib.so ${PN}.so.${PV}
dosym ${PN}.so.${PV} /usr/$(get_libdir)/${PN}.so.$(ver_cut 1)
dosym ${PN}.so.$(ver_cut 1) /usr/$(get_libdir)/${PN}.so
fi
dolib.so ${PN}.so.${PV}
dosym ${PN}.so.${PV} /usr/$(get_libdir)/${PN}.so.$(ver_cut 1)
dosym ${PN}.so.$(ver_cut 1) /usr/$(get_libdir)/${PN}.so
cd include && doheader -r .
}

Loading…
Cancel
Save