diff mbox series

[oe,meta-oe,3/4] postgresql: Do not link with libnsl on musl

Message ID 20170719154132.20556-3-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-networking,1/4] ippool: Fix build errors found with hardening flags | expand

Commit Message

Khem Raj July 19, 2017, 3:41 p.m. UTC
libnsl is not available on musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.13.3

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb b/meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb
index e4d2edad0..7043b272a 100644
--- a/meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb
+++ b/meta-oe/recipes-support/postgresql/postgresql_9.4.11.bb
@@ -7,5 +7,9 @@  SRC_URI += "\
     file://not-check-libperl.patch \
 "
 
+do_compile_prepend_libc-musl() {
+    sed -i -e 's/\-lnsl//g' ${B}/src/Makefile.global
+}
+
 SRC_URI[md5sum] = "2fee03f2034034dbfcb3321a0bb0f829"
 SRC_URI[sha256sum] = "e3eb51d045c180b03d2de1f0c3af9356e10be49448e966ca01dfc2c6d1cc9d23"