Commit 5dfb7a36 authored by Jakub Jirutka's avatar Jakub Jirutka

newapkbuild: fix build_cmake template - escape parameters

parent 033349d3
......@@ -59,8 +59,7 @@ build_cmake() {
sed -i -e 's/^\(makedepends="\)/\1cmake /' APKBUILD
cat >>APKBUILD<<__EOF__
if [ "$CBUILD" != "$CHOST" ]
then
if [ "\$CBUILD" != "\$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \\
......@@ -70,7 +69,7 @@ build_cmake() {
-DCMAKE_BUILD_TYPE=Release \\
-DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\
-DCMAKE_C_FLAGS="\$CFLAGS" \\
${CMAKE_CROSSOPTS}
\${CMAKE_CROSSOPTS}
make
__EOF__
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment