blob: e56fdbde1a31f643a0b25f65872c56eabaa3b9e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit toolchain-funcs multilib
DESCRIPTION="Dummy libdl.so for systems where dlopen() is builtin into ld.so"
HOMEPAGE="http://www.gnu-darwin.org/shims/libdl.c"
SRC_URI="http://www.gnu-darwin.org/shims/libdl.c"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~x86 ~x86-openbsd"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
S="${WORKDIR}"
src_unpack(){
cp "${DISTDIR}/${A}" "${S}" || die "cp failed"
}
src_compile(){
$(tc-getCC) ${CFLAGS} ${LDFLAGS} libdl.c \
-shared \
-Wl,--soname=libdl.so.1 \
-fPIC \
-o libdl.so.1 || die "compilation failed"
}
src_install(){
dolib.so libdl.so.1 || die "libdl.so failed"
dosym "${EPREFIX}"/usr/$(get_libdir)/libdl.so.1 libdl.so || die "dosym failed"
}
|