summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-20 03:35:26 -0700
committerJoe MacDonald <joe_macdonald@mentor.com>2017-09-08 16:38:20 -0400
commit0f57a51209586a2d5277d3a9ca0aac34a4eb228f (patch)
treec3e25f6cc6dffcbed223b6f89240ac71515955ea /meta-networking/recipes-daemons/ippool/ippool_1.3.bb
parent48bce13c9b47ddd149f690b81606248dc6c47fc4 (diff)
downloadmeta-openembedded-0f57a51209586a2d5277d3a9ca0aac34a4eb228f.tar.gz
ippool: Fix build errors found with hardening flags
Fix build with musl Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/ippool/ippool_1.3.bb')
-rw-r--r--meta-networking/recipes-daemons/ippool/ippool_1.3.bb31
1 files changed, 18 insertions, 13 deletions
diff --git a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
index 969f434cc7..05921d536e 100644
--- a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
+++ b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb
@@ -11,16 +11,21 @@ HOMEPAGE = "http://www.openl2tp.org/"
11SECTION = "console/network" 11SECTION = "console/network"
12LICENSE = "GPLv2+" 12LICENSE = "GPLv2+"
13 13
14SRC_URI = "\ 14SRC_URI = "https://sourceforge.net/projects/openl2tp/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz \
15 https://sourceforge.net/projects/openl2tp/files/${BPN}/${PV}/${BPN}-${PV}.tar.gz \ 15 file://runtest.sh \
16 file://ippool_usl_timer.patch \ 16 file://ippool.service \
17 file://ippool_parallel_make_and_pic.patch \ 17 file://ippool_usl_timer.patch \
18 file://ippool_init.d.patch \ 18 file://ippool_parallel_make_and_pic.patch \
19 file://always_syslog.patch \ 19 file://ippool_init.d.patch \
20 file://makefile-add-ldflags.patch \ 20 file://always_syslog.patch \
21 file://runtest.sh \ 21 file://makefile-add-ldflags.patch \
22 file://ippool.service \ 22 file://0001-usl_timer-Check-for-return-value-of-write-API.patch \
23 " 23 file://0001-Respect-flags-from-env.patch \
24"
25SRC_URI_append_libc-musl = "\
26 file://0002-link-with-libtirpc.patch \
27 file://0003-musl-fixes.patch \
28 "
24 29
25LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f" 30LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f"
26SRC_URI[md5sum] = "e2401e65db26a3764585b97212888fae" 31SRC_URI[md5sum] = "e2401e65db26a3764585b97212888fae"
@@ -29,6 +34,7 @@ SRC_URI[sha256sum] = "d3eab7d6cad5da8ccc9d1e31d5303e27a39622c07bdb8fa3618eea3144
29inherit systemd 34inherit systemd
30 35
31DEPENDS = "readline ppp ncurses gzip-native" 36DEPENDS = "readline ppp ncurses gzip-native"
37DEPENDS_append_libc-musl = " libtirpc"
32RDEPENDS_${PN} = "rpcbind" 38RDEPENDS_${PN} = "rpcbind"
33 39
34EXTRA_OEMAKE = "CC='${CC}' AS='${AS}' LD='${LD}' AR='${AR}' NM='${NM}' STRIP='${STRIP}'" 40EXTRA_OEMAKE = "CC='${CC}' AS='${AS}' LD='${LD}' AR='${AR}' NM='${NM}' STRIP='${STRIP}'"
@@ -36,6 +42,8 @@ EXTRA_OEMAKE += "PPPD_VERSION=${PPPD_VERSION} SYS_LIBDIR=${libdir}"
36# enable self tests 42# enable self tests
37EXTRA_OEMAKE += "IPPOOL_TEST=y" 43EXTRA_OEMAKE += "IPPOOL_TEST=y"
38 44
45CPPFLAGS += "${SELECTED_OPTIMIZATION}"
46CPPFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc"
39 47
40SYSTEMD_SERVICE_${PN} = "ippool.service" 48SYSTEMD_SERVICE_${PN} = "ippool.service"
41SYSTEMD_AUTO_ENABLE = "disable" 49SYSTEMD_AUTO_ENABLE = "disable"
@@ -48,9 +56,6 @@ do_compile_prepend() {
48 56
49 sed -i -e "s:-I/usr/include/pppd:-I=/usr/include/pppd:" ${S}/pppd/Makefile 57 sed -i -e "s:-I/usr/include/pppd:-I=/usr/include/pppd:" ${S}/pppd/Makefile
50 58
51 # ignore the OPT_CFLAGS?= in Makefile,
52 # it should be in CFLAGS from env
53 export OPT_CFLAGS=
54} 59}
55 60
56 61