Skip to content

Commit

Permalink
py-shiboken: revert breakage introduced by C++11 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 3, 2024
1 parent 6789bde commit b67ebf7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions python/py-shiboken/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,18 @@ if {${name} ne ${subport}} {
port:libxslt \
port:sparsehash
use_configure yes
compiler.cxx_standard 2011
configure.cxxflags-append -std=c++11

# It is not really clear if the issue is specific to powerpc, gcc version
# or something else. However, building with C++11 leads to segfault.
# https://github.com/pyside/Shiboken/issues/94
# Shiboken does not require C++11; it was added here:
# https://github.com/macports/macports-ports/commit/e6316eff0372ba2ef5e8216a3fe7e2073057cf3e
# Same versions which build fine without C++11 (and thus with gcc-4.2)
# are broken with C++11 and a modern gcc. Unbreak this at least for powerpc:
if {${configure.build_arch} ni [list ppc ppc64]} {
compiler.cxx_standard 2011
configure.cxxflags-append -std=c++11
}
# build.cmd must be set before configure.args is changed
# (see https://github.com/macports/macports-ports/commit/63c9c8e6e312c8e36603cb118d94f995aa8a6e67)
build.cmd make
Expand Down

0 comments on commit b67ebf7

Please sign in to comment.