Skip to content

Commit

Permalink
media-video/vlc: Replace -Os with -O2 for x86
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/569774
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
a17r committed Dec 25, 2017
1 parent 93bcdbc commit 882c60a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
8 changes: 6 additions & 2 deletions media-video/vlc/vlc-2.2.8-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,12 @@ src_configure() {
# Compatibility fix for Samba 4.
use samba && append-cppflags "-I/usr/include/samba-4.0"

# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
use x86 && append-cflags $(test-flags-CC -fno-stack-check)
if use x86; then
# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
append-cflags $(test-flags-CC -fno-stack-check)
# Bug 569774
replace-flags -Os -O2
fi

# FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
Expand Down
8 changes: 6 additions & 2 deletions media-video/vlc/vlc-2.2.8.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,12 @@ src_configure() {
# Compatibility fix for Samba 4.
use samba && append-cppflags "-I/usr/include/samba-4.0"

# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
use x86 && append-cflags $(test-flags-CC -fno-stack-check)
if use x86; then
# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
append-cflags $(test-flags-CC -fno-stack-check)
# Bug 569774
replace-flags -Os -O2
fi

# FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
Expand Down
8 changes: 6 additions & 2 deletions media-video/vlc/vlc-2.2.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,12 @@ src_configure() {
# Compatibility fix for Samba 4.
use samba && append-cppflags "-I/usr/include/samba-4.0"

# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
use x86 && append-cflags $(test-flags-CC -fno-stack-check)
if use x86; then
# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
append-cflags $(test-flags-CC -fno-stack-check)
# Bug 569774
replace-flags -Os -O2
fi

# FIXME: Needs libresid-builder from libsidplay:2 which is in another directory...
append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
Expand Down
8 changes: 6 additions & 2 deletions media-video/vlc/vlc-3.0.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,12 @@ src_configure() {
# Compatibility fix for Samba 4.
use samba && append-cppflags "-I/usr/include/samba-4.0"

# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
use x86 && append-cflags $(test-flags-CC -fno-stack-check)
if use x86; then
# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
append-cflags $(test-flags-CC -fno-stack-check)
# Bug 569774
replace-flags -Os -O2
fi

# VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8
append-cxxflags -std=c++11
Expand Down
8 changes: 6 additions & 2 deletions media-video/vlc/vlc-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,12 @@ src_configure() {
# Compatibility fix for Samba 4.
use samba && append-cppflags "-I/usr/include/samba-4.0"

# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
use x86 && append-cflags $(test-flags-CC -fno-stack-check)
if use x86; then
# We need to disable -fstack-check if use >=gcc 4.8.0. bug #499996
append-cflags $(test-flags-CC -fno-stack-check)
# Bug 569774
replace-flags -Os -O2
fi

# VLC now requires C++11 after commit 4b1c9dcdda0bbff801e47505ff9dfd3f274eb0d8
append-cxxflags -std=c++11
Expand Down

0 comments on commit 882c60a

Please sign in to comment.