summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2015-04-16 16:35:05 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-05-11 10:25:52 +0200
commit02436486ba62ac6a4489eb2cc3428b140d9e8422 (patch)
treeb8e419a69b2899b4e590b9bea620c84cf7859f2d /meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
parent91fd102139313dcc7acc50e0aa54b936c46746d4 (diff)
downloadmeta-openembedded-02436486ba62ac6a4489eb2cc3428b140d9e8422.tar.gz
netkit-telnet: support the cross-compile
when check the CC, only compile the object by CC, not run the object. MCONFIG file includes more configuration, we can not clear it Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb')
-rw-r--r--meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
index a2dc1c270..6b2e72f8e 100644
--- a/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
+++ b/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb
@@ -8,6 +8,7 @@ SRC_URI = "ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${BP}.tar.gz \
8 file://To-aviod-buffer-overflow-in-telnet.patch \ 8 file://To-aviod-buffer-overflow-in-telnet.patch \
9 file://Warning-fix-in-the-step-of-install.patch \ 9 file://Warning-fix-in-the-step-of-install.patch \
10 file://telnet-xinetd \ 10 file://telnet-xinetd \
11 file://cross-compile.patch \
11" 12"
12 13
13EXTRA_OEMAKE = "INSTALLROOT=${D} SBINDIR=${sbindir} DAEMONMODE=755 \ 14EXTRA_OEMAKE = "INSTALLROOT=${D} SBINDIR=${sbindir} DAEMONMODE=755 \
@@ -15,7 +16,10 @@ EXTRA_OEMAKE = "INSTALLROOT=${D} SBINDIR=${sbindir} DAEMONMODE=755 \
15 16
16do_configure () { 17do_configure () {
17 ./configure --prefix=${prefix} 18 ./configure --prefix=${prefix}
18 echo "LDFLAGS=${LDFLAGS}" > MCONFIG 19 sed -e 's#^CFLAGS=\(.*\)$#CFLAGS= -D_GNU_SOURCE \1#' \
20 -e 's#^CXXFLAGS=\(.*\)$#CXXFLAGS= -D_GNU_SOURCE \1#' \
21 -e 's#^LDFLAGS=.*$#LDFLAGS= ${LDFLAGS}#' \
22 -i MCONFIG
19} 23}
20 24
21do_compile () { 25do_compile () {