mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
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>
This commit is contained in:
@@ -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 ..
|
||||
|
||||
Reference in New Issue
Block a user