summaryrefslogtreecommitdiff
path: root/libre/linux-libre-firmware
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2018-04-10 13:25:12 -0300
committerDavid P <megver83@parabola.nu>2018-04-10 13:25:12 -0300
commit756cdc9b4d169d28ebb2e1f6992e3f4bd2fb7a69 (patch)
tree544ac29b1787e2453ed9e25efb52c14959121b83 /libre/linux-libre-firmware
parentc0501eec56fa00d8eb90f792e7f540238d3fba93 (diff)
downloadabslibre-756cdc9b4d169d28ebb2e1f6992e3f4bd2fb7a69.tar.gz
abslibre-756cdc9b4d169d28ebb2e1f6992e3f4bd2fb7a69.tar.bz2
abslibre-756cdc9b4d169d28ebb2e1f6992e3f4bd2fb7a69.zip
libre/linux-libre-firmware: set CFLAGS for x86_64 at build()
Diffstat (limited to 'libre/linux-libre-firmware')
-rw-r--r--libre/linux-libre-firmware/PKGBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/libre/linux-libre-firmware/PKGBUILD b/libre/linux-libre-firmware/PKGBUILD
index cd5cbaac4..26c128d1b 100644
--- a/libre/linux-libre-firmware/PKGBUILD
+++ b/libre/linux-libre-firmware/PKGBUILD
@@ -56,10 +56,13 @@ prepare() {
build() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
- # NOTE: usbdux will only build in 32-bits systems/chroots (i686 and armv7h for instance),
- # however compiling it manually (without makepkg) on a 64-bits machine works.
- # Building with makepkg in a 64-bits system or chroot ends into a segmentation fault.
- # Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887320
+ if [ $CARCH = x86_64 ]; then
+ # Building as31 with -O2 in 64-bits systems will
+ # make usbdux result into a segmentation fault
+ # Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887320
+ CFLAGS=${CFLAGS/-O2/-O0}
+ fi
+
make
}