diff options
| author | Khem Raj <raj.khem@gmail.com> | 2017-07-20 03:35:26 -0700 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-09-08 16:38:20 -0400 |
| commit | 0f57a51209586a2d5277d3a9ca0aac34a4eb228f (patch) | |
| tree | c3e25f6cc6dffcbed223b6f89240ac71515955ea /meta-networking/recipes-daemons/ippool/ippool_1.3.bb | |
| parent | 48bce13c9b47ddd149f690b81606248dc6c47fc4 (diff) | |
| download | meta-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.bb | 31 |
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/" | |||
| 11 | SECTION = "console/network" | 11 | SECTION = "console/network" |
| 12 | LICENSE = "GPLv2+" | 12 | LICENSE = "GPLv2+" |
| 13 | 13 | ||
| 14 | SRC_URI = "\ | 14 | SRC_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 | " | ||
| 25 | SRC_URI_append_libc-musl = "\ | ||
| 26 | file://0002-link-with-libtirpc.patch \ | ||
| 27 | file://0003-musl-fixes.patch \ | ||
| 28 | " | ||
| 24 | 29 | ||
| 25 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f" | 30 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f" |
| 26 | SRC_URI[md5sum] = "e2401e65db26a3764585b97212888fae" | 31 | SRC_URI[md5sum] = "e2401e65db26a3764585b97212888fae" |
| @@ -29,6 +34,7 @@ SRC_URI[sha256sum] = "d3eab7d6cad5da8ccc9d1e31d5303e27a39622c07bdb8fa3618eea3144 | |||
| 29 | inherit systemd | 34 | inherit systemd |
| 30 | 35 | ||
| 31 | DEPENDS = "readline ppp ncurses gzip-native" | 36 | DEPENDS = "readline ppp ncurses gzip-native" |
| 37 | DEPENDS_append_libc-musl = " libtirpc" | ||
| 32 | RDEPENDS_${PN} = "rpcbind" | 38 | RDEPENDS_${PN} = "rpcbind" |
| 33 | 39 | ||
| 34 | EXTRA_OEMAKE = "CC='${CC}' AS='${AS}' LD='${LD}' AR='${AR}' NM='${NM}' STRIP='${STRIP}'" | 40 | EXTRA_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 |
| 37 | EXTRA_OEMAKE += "IPPOOL_TEST=y" | 43 | EXTRA_OEMAKE += "IPPOOL_TEST=y" |
| 38 | 44 | ||
| 45 | CPPFLAGS += "${SELECTED_OPTIMIZATION}" | ||
| 46 | CPPFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc" | ||
| 39 | 47 | ||
| 40 | SYSTEMD_SERVICE_${PN} = "ippool.service" | 48 | SYSTEMD_SERVICE_${PN} = "ippool.service" |
| 41 | SYSTEMD_AUTO_ENABLE = "disable" | 49 | SYSTEMD_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 | ||
