aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-05-22 21:43:51 -0700
committerKhem Raj <raj.khem@gmail.com>2018-05-26 21:10:55 -0700
commitd986db60835473118d793dcadaa6aac622bdbd5f (patch)
tree69917fc7990bddb4f54f61ac10da204210740a0f /meta-multimedia
parent51c6624684a5acfceb2feeb8bd9bfa7f744c1526 (diff)
downloadmeta-openembedded-contrib-d986db60835473118d793dcadaa6aac622bdbd5f.tar.gz
meta-openembedded-contrib-d986db60835473118d793dcadaa6aac622bdbd5f.tar.bz2
meta-openembedded-contrib-d986db60835473118d793dcadaa6aac622bdbd5f.zip
libmusicbrainz: Set CMAKE_EXE_LINKER_FLAGS to build linker flags
Some older compilers do not support security flags like -fstack-protector=strong and if we do not set this then it will use the target flags to pass here which will fail with gcc < 5.x, especially a problem building distros with security flags on host with 4.x gcc e.g. ubuntu 14.04 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r--meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
index 16e52134bd..ca9d94a19c 100644
--- a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
+++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
@@ -22,10 +22,12 @@ do_configure_prepend() {
git clean -dfx -e /.pc/ -e /patches/ .
mkdir build-native
cd build-native
- cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
+ LDFLAGS="${BUILD_LDFLAGS}" \
+ cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
-DCMAKE_C_COMPILER=${BUILD_CC} \
-DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \
-DCMAKE_CXX_COMPILER=${BUILD_CXX} \
+ -DCMAKE_EXE_LINKER_FLAGS=${BUILD_LDFLAGS} \
..
make make-c-interface
cd ..