From 97e7a07285534e13cc3521aea76195f20d0b474c Mon Sep 17 00:00:00 2001 From: David Cooper Date: Thu, 26 Dec 2024 15:25:54 -0500 Subject: [PATCH] Fix build warnings --- .SRCINFO | 2 +- PKGBUILD | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index f697381..eab05f4 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = butt pkgdesc = Easy to use, multi OS streaming tool pkgver = 1.44.0 - pkgrel = 5 + pkgrel = 6 url = https://danielnoethen.de/butt/ arch = i686 arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index 2061e15..13b9bf0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ pkgname=butt pkgver=1.44.0 -pkgrel=5 +pkgrel=6 pkgdesc="Easy to use, multi OS streaming tool" arch=('i686' 'x86_64' 'aarch64' 'armv7h') license=('GPL2') @@ -24,7 +24,12 @@ prepare() { build() { cd "${pkgname}-${pkgver}" - ./configure --with-client --enable-webrtc --prefix=/usr LDFLAGS="-L$(dirname $(fltk-config --libs))" + + # Replacing _FORTIFY_SOURCE here fixes build warnings + ./configure --with-client --enable-webrtc --prefix=/usr \ + CFLAGS="${CFLAGS/_FORTIFY_SOURCE=?/_FORTIFY_SOURCE=2}" \ + CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=?/_FORTIFY_SOURCE=2}" + make } @@ -56,5 +61,3 @@ package() { install -Dm644 "${file}" "${pkgdir}/usr/share/pixmaps/${filename}" done } - -# vim:set ts=2 sw=2 et: