summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Baumann2023-06-01 10:43:19 +0200
committerAndreas Baumann2023-06-01 10:43:19 +0200
commit25e5db9bc519dab2227f585a889a8b2650c50586 (patch)
treeb3092d67b7cf2e0aa30a5c79590bf87590fd35df
parent545bd06b358b723861e36b35cd69536cb363d4f8 (diff)
downloadaur-25e5db9bc519dab2227f585a889a8b2650c50586.tar.gz
defining _LARGEFILE64_SOURCE for musl
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 6 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ddb92c207223..6304378d05e2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pacman-static
pkgdesc = Statically-compiled pacman (to fix or install systems without libc)
pkgver = 6.0.2
- pkgrel = 2
+ pkgrel = 3
url = https://www.archlinux.org/pacman/
arch = i486
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 4454724f20a6..165039030cbd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ _libarchive_ver=3.6.1
_gpgerrorver=1.46
_libassuanver=2.5.5
_gpgmever=1.18.0
-pkgrel=2
+pkgrel=3
pkgdesc="Statically-compiled pacman (to fix or install systems without libc)"
arch=('i486' 'i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://www.archlinux.org/pacman/"
@@ -138,6 +138,10 @@ if [[ $CARCH = i686 || $CARCH = pentium4 || $CARCH = i486 ]]; then
export CXXFLAGS="${CXXFLAGS/-fstack-protector-strong/}"
fi
+# to enable func64 interface in musl for 64-bit file system functions
+export CFLAGS+=' -D_LARGEFILE64_SOURCE'
+export CXXFLAGS+=' -D_LARGEFILE64_SOURCE'
+
# keep using xz-compressed packages, because one use of the package is to
# recover on systems with broken zstd support in libarchive
[[ $PKGEXT = .pkg.tar.zst ]] && PKGEXT=.pkg.tar.xz