summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/cross-gcc-3.3.1.oe29
-rw-r--r--content/ncurses-5.3.oe1
2 files changed, 30 insertions, 0 deletions
diff --git a/content/cross-gcc-3.3.1.oe b/content/cross-gcc-3.3.1.oe
index e69de29bb2..a2022ee26b 100644
--- a/content/cross-gcc-3.3.1.oe
+++ b/content/cross-gcc-3.3.1.oe
@@ -0,0 +1,29 @@
+PROVIDES="virtual/${OLDARCH}-${OLDOS}-gcc"
+
+SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}.tar.gz
+S = ${WORKDIR}/gcc-${PV}
+
+OLDOS := ${OS}
+OLDARCH := ${ARCH}
+CROSS_DIR := ${CROSS_DIR}
+inherit noncross autotools
+
+EXTRA_OECONF = --with-gxx-include-dir=${CROSS_DIR}/include/c++ \
+ --enable-shared \
+ --enable-threads
+tmake_file = gcc/config/${OLDARCH}/t-linux
+
+do_configure() {
+ ./configure --target=${OLDARCH}-${OLDOS} --prefix=${CROSS_DIR} \
+ --with-gnu-ld --oldincludedir=${CROSS_DIR}/include \
+ --enable-shared ${EXTRA_OECONF}
+ touch ${tmake_file}
+ mv ${tmake_file} > ${tmake_file}.tmp
+ cat ${tmake_file}.tmp | sed -e's/-Dinhibit_libc -D__gthr_posix_h//g' > ${tmake_file}
+ rm -f ${tmake_file}.tmp
+}
+
+EXTRA_OEMAKE =
+do_compile() {
+ oe_runmake
+}
diff --git a/content/ncurses-5.3.oe b/content/ncurses-5.3.oe
index 1057a25706..ce4315f37b 100644
--- a/content/ncurses-5.3.oe
+++ b/content/ncurses-5.3.oe
@@ -33,6 +33,7 @@ do_compile () {
do_stage () {
install -m 0755 lib/lib*.so.* ${STAGING_LIBDIR}/
cp -R include/* ${STAGING_DIR}/target/include/
+ ln -sf curses.h ${STAGING_DIR}/target/include/ncurses.h
ln -sf libpanel.so.5.3 ${STAGING_LIBDIR}/libpanel.so
ln -sf libform.so.5.3 ${STAGING_LIBDIR}/libform.so
ln -sf libmenu.so.5.3 ${STAGING_LIBDIR}/libmenu.so