mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
common/build-style/cmake.sh: strip -pipe if present in C(XX)FLAGS
Reason: https://gitlab.kitware.com/cmake/cmake/issues/19590 Our workaround within cmake is not sufficient as it does not address the issue fully and things still break sometimes. So work around this in the build-style for the time being (and drop the cmake patch). Once this is fixed upstream (probably needs special casing for the -pipe flag and strip it during compile tests) we can drop this.
This commit is contained in:
parent
8e41df8389
commit
f317ed5e7e
1 changed files with 4 additions and 2 deletions
|
@ -57,6 +57,8 @@ _EOF
|
||||||
|
|
||||||
cmake_args+=" -DCMAKE_INSTALL_SBINDIR=bin"
|
cmake_args+=" -DCMAKE_INSTALL_SBINDIR=bin"
|
||||||
|
|
||||||
|
# Override flags: https://gitlab.kitware.com/cmake/cmake/issues/19590
|
||||||
|
CFLAGS="${CFLAGS/ -pipe / }" CXXFLAGS="${CXXFLAGS/ -pipe / }" \
|
||||||
cmake ${cmake_args} ${configure_args} $(echo ${cmake_builddir}|sed \
|
cmake ${cmake_args} ${configure_args} $(echo ${cmake_builddir}|sed \
|
||||||
-e 's|[^/]$|/|' -e 's|[^/]*||g' -e 's|/|../|g')
|
-e 's|[^/]$|/|' -e 's|[^/]*||g' -e 's|/|../|g')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue