Skip to contentSkip to conversation

as-needed.inc: Compile pulseaudio with --as-needed

PATCH New Khem Raj 1 participant 3 messages Jun 2, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 as-needed.inc: Compile pulseaudio with --as-needed

This effectively reverts
commit f06e99d194eda49ee194f8ae401a23819e61b90f

---
 meta/conf/distro/include/as-needed.inc | 1 -
 1 file changed, 1 deletion(-)
meta/conf/distro/include/as-needed.inc +0 -1
index 114d377eac..6a8ad9d624 100644
@@ -8,7 +8,6 @@ ASNEEDED_pn-openobex = ""
 ASNEEDED_pn-icu = ""
 ASNEEDED_pn-pciutils = ""
 ASNEEDED_pn-puzzles = ""
-ASNEEDED_pn-pulseaudio = ""
 ASNEEDED_pn-rpm = ""
 
 TARGET_LDFLAGS += "${ASNEEDED}"
Signature · 1 line
2.13.0
author
#1 lore raw

PATCH 2/3 musl: Update to lates master

- towupper/towlower: fast path for ascii chars
- remove long-obsolete clang workarounds from mips* syscall_arch.h files
- fix fstatat syscall on mips64

---
 meta/recipes-core/musl/musl_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/musl/musl_git.bb +1 -1
index e84bc7531b..67095a30ea 100644
@@ -3,7 +3,7 @@
 
 require musl.inc
 
-SRCREV = "f9f686b7721e2cc35e20fa5c6df6da2dc4ac3f50"
+SRCREV = "179766aa2ef06df854bc1d9616bf6f00ce49b7f9"
 
 PV = "1.1.16+git${SRCPV}"
 
Signature · 1 line
2.13.0
author
#2 lore raw

PATCH 3/3 setuptoools.bbclass: Do not use -pie with hardening

In reply to Khem Raj

Fix build when PIE is turned on. It tries to build .so file using -pie and -shared flags together because its doing compile and link in same step CFLAGS and LDFLAGS are combined and does not work, ending in errors e.g.

| /mnt/a/oe/build/tmp/work/cortexa7t2hf-neon-vfpv4-bec-linux-musleabi/python-pygpgme/0.3-r0/recipe-sysroot/usr/l ib/Scrt1.o: In function `_start_c':
| /usr/src/debug/musl/1.1.16+gitAUTOINC+179766aa2e-r0/git/crt/crt1.c:17: undefined reference to `main' | collect2: error: ld returned 1 exit status

This error while cryptic is due to the fact that we are building a shared library but also pass -pie flag to the link step after specify LDHSARED ( which is -shared linker flags )

we can not use -pie when doing shared libs. This is true for all the python modules inheriting setup tools

Disable the pie flags thusly for all modules using setuptools since this setting is done in setuptools makefiles which are then used during module compiles

---
 meta/classes/setuptools.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/setuptools.bbclass +2 -0
index 56343b1c73..7d0c5267d7 100644
@@ -6,3 +6,5 @@ DISTUTILS_INSTALL_ARGS = "--root=${D} \
     --prefix=${prefix} \
     --install-lib=${PYTHON_SITEPACKAGES_DIR} \
     --install-data=${datadir}"
+
+SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
Signature · 1 line
2.13.0