mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 07:57:27 +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/ .
|
git clean -dfx -e /.pc/ -e /patches/ .
|
||||||
mkdir build-native
|
mkdir build-native
|
||||||
cd 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_C_COMPILER=${BUILD_CC} \
|
||||||
-DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \
|
-DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \
|
||||||
-DCMAKE_CXX_COMPILER=${BUILD_CXX} \
|
-DCMAKE_CXX_COMPILER=${BUILD_CXX} \
|
||||||
|
-DCMAKE_EXE_LINKER_FLAGS=${BUILD_LDFLAGS} \
|
||||||
..
|
..
|
||||||
make make-c-interface
|
make make-c-interface
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
Reference in New Issue
Block a user