summaryrefslogtreecommitdiff
path: root/packages/ltrace/ltrace_0.3.36.bb
blob: 12ed4f8d1382d1567dfafb8dba66455d83eebaef (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
DESCRIPTION = "ltrace shows runtime library call information for dynamically linked executables."
HOMEPAGE = "http://packages.debian.org/unstable/utils/ltrace.html"
SECTION = "devel"
DEPENDS = "libelf"
LICENSE = "GPL"
PR = "r2"

SRC_URI = "ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.3.36.orig.tar.gz \
           ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.3.36-2.diff.gz;patch=1"
inherit autotools

PARALLEL_MAKE = ""
EXTRA_OEMAKE = "ARCH=${LTRACE_ARCH} \
		INSTALL_FILE='$(INSTALL) -p -m 0644' \
		INSTALL_PROGRAM='$(INSTALL) -p -m 0755' \
		INSTALL_SCRIPT='$(INSTALL) -p -m 0755' \
		INSTALL_DIR='$(INSTALL) -p -d -m 0755' "

export TARGET_CFLAGS = "${SELECTED_OPTIMIZATION} -isystem ${STAGING_DIR}/${TARGET_SYS}/include"

LTRACE_ARCH = ${TARGET_ARCH}
LTRACE_ARCH_i686 = "i386"
LTRACE_ARCH_i586 = "i386"

do_configure_prepend() {
	ln -sf ./linux-gnu sysdeps/linux-gnueabi
}

do_compile() {
	oe_runmake LDFLAGS=${TARGET_LDFLAGS} LIBS="-lsupc++ -liberty -Wl,-Bstatic -lelf -Wl,-Bdynamic" ${EXTRA_OEMAKE}
}