Skip to content

Commit

Permalink
media-libs/harfbuzz: filter unsupported flags
Browse files Browse the repository at this point in the history
harfbuzz does not want to link with libstdc++. Therefore
-fno-exceptions and -fno-threadsafe-statics are passed to
the C++ compiler. With autotools these flags were appended
after user CXXFLAGS. However, with meson user CXXFLAGS are
always appended and can overwrite -fno-exceptions and
-fno-threadsafe-statics.

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
  • Loading branch information
stha09 committed May 17, 2021
1 parent efa14d3 commit 4fd19db
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions media-libs/harfbuzz/harfbuzz-2.7.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ src_prepare() {
# bug 618772
append-cxxflags -std=c++14

# bug 790359
filter-flags -fexceptions -fthreadsafe-statics

# bug 762415
local pyscript
for pyscript in $(find -type f -name "*.py") ; do
Expand Down
3 changes: 3 additions & 0 deletions media-libs/harfbuzz/harfbuzz-2.8.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ src_prepare() {
# bug 618772
append-cxxflags -std=c++14

# bug 790359
filter-flags -fexceptions -fthreadsafe-statics

# bug 762415
local pyscript
for pyscript in $(find -type f -name "*.py") ; do
Expand Down
3 changes: 3 additions & 0 deletions media-libs/harfbuzz/harfbuzz-2.8.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ src_prepare() {
# bug 618772
append-cxxflags -std=c++14

# bug 790359
filter-flags -fexceptions -fthreadsafe-statics

# bug 762415
local pyscript
for pyscript in $(find -type f -name "*.py") ; do
Expand Down
3 changes: 3 additions & 0 deletions media-libs/harfbuzz/harfbuzz-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ src_prepare() {
# bug 618772
append-cxxflags -std=c++14

# bug 790359
filter-flags -fexceptions -fthreadsafe-statics

# bug 762415
local pyscript
for pyscript in $(find -type f -name "*.py") ; do
Expand Down

0 comments on commit 4fd19db

Please sign in to comment.