summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2005-03-10 23:32:15 +0000
committerChris Larson <clarson@kergoth.com>2005-03-10 23:32:15 +0000
commit063b32559f113465ce7f136b594f65179050b77d (patch)
treecc17a96db0f5bdf7f490bab4c2441ffe70396ca0
parent15a6381fadcb8097bda462dd9f0457580256cf24 (diff)
Fix the uclibc++ build to set the execute bit on the .so, to ensure it gets stripped.
BKrev: 4230d8ffSnRvFlwpmsjomP1-8oO6NA
-rw-r--r--packages/uclibc++/uclibc++_0.1.9.bb58
1 files changed, 58 insertions, 0 deletions
diff --git a/packages/uclibc++/uclibc++_0.1.9.bb b/packages/uclibc++/uclibc++_0.1.9.bb
index e69de29bb2..90154e3a9d 100644
--- a/packages/uclibc++/uclibc++_0.1.9.bb
+++ b/packages/uclibc++/uclibc++_0.1.9.bb
@@ -0,0 +1,58 @@
+DESCRIPTION = "A C++ standard library targeted towards the embedded \
+systems/software market."
+HOMEPAGE = "http://cxx.uclibc.org/"
+LICENSE = "LGPL"
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+PRIORITY = "optional"
+SECTION = "libs"
+
+PR = "r1"
+
+SRC_URI = "http://cxx.uclibc.org/src/uClibc++-${PV}.tbz2 \
+ file://nobash.patch;patch=1 \
+ file://defconfig"
+S = "${WORKDIR}/uClibc++"
+
+# uClibc++ runtime prefix directory (UCLIBCXX_RUNTIME_PREFIX) [/usr/$(TARGET_ARCH)-linux-uclibc] (NEW)
+# uClibc++ header file subdirectory (UCLIBCXX_RUNTIME_INCLUDE_SUBDIR) [/include] (NEW)
+# uClibc++ library subdirectory (UCLIBCXX_RUNTIME_LIB_SUBDIR) [/lib] (NEW)
+# uClibc++ application file subdirectory (UCLIBCXX_RUNTIME_BIN_SUBDIR) [/bin] (NEW)
+
+do_unpack_real () {
+ bzcat uClibc++-${PV}.tbz2 | tar -xvf -
+}
+do_unpack_real[dirs] = "${WORKDIR}"
+addtask unpack_real before do_patch after do_unpack
+
+EXTRA_OEMAKE = "'OPTIMIZATION=' 'XWARNINGS=' 'XARCH_CFLAGS=${CFLAGS}' \
+ 'CPU_FLAGS=' 'STRIPTOOL=true' 'LD=${LD}'"
+configmangle = 's,^UCLIBCXX_RUNTIME_PREFIX=.*,UCLIBCXX_RUNTIME_PREFIX="${exec_prefix}",; \
+ s,^UCLIBCXX_RUNTIME_INCLUDE_SUBDIR=.*,UCLIBCXX_RUNTIME_INCLUDE_SUBDIR="/include/c++-uc",; \
+ s,^UCLIBCXX_RUNTIME_LIB_SUBDIR=.*,UCLIBCXX_RUNTIME_LIB_SUBDIR="/lib",; \
+ s,^UCLIBCXX_RUNTIME_BIN_SUBDIR=.*,UCLIBCXX_RUNTIME_BIN_SUBDIR="/bin",;'
+PARALLEL_MAKE = ""
+
+do_configure () {
+ cp ${WORKDIR}/defconfig ${S}/.config
+
+ perl -i -p -e 's,^CROSS=.*,TARGET_ARCH=${TARGET_ARCH}\nCROSS=${TARGET_PREFIX},g' ${S}/Rules.mak
+ perl -i -p -e '${configmangle}' ${S}/.config
+
+ oe_runmake oldconfig
+}
+
+do_stage () {
+ oe_runmake 'UCLIBCXX_RUNTIME_PREFIX=${STAGING_LIBDIR}/../' \
+ install
+ chmod +x ${STAGING_LIBDIR}/libuClibc++.so.*
+}
+
+do_install () {
+ oe_runmake 'DESTDIR=${D}' install
+ chmod +x ${D}${libdir}/libuClibc++.so.*
+}
+
+PACKAGES = "g++-uc libuclibc++ libuclibc++-dev"
+FILES_g++-uc = "${bindir}/g++-uc"
+FILES_libuclibc++ = "${libdir}/*.so.*"
+FILES_libuclibc++-dev = "${FILES_uclibc++-dev}"