unrar: don't -march=native

fixes #50839
closes #50557
This commit is contained in:
classabbyamp 2024-06-15 17:54:45 -04:00
parent 4d179905ef
commit 9e1ff10087
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5

View file

@ -1,7 +1,7 @@
# Template file for 'unrar'
pkgname=unrar
version=7.0.9
revision=1
revision=2
archs="x86_64* i686*"
short_desc="Unarchiver for .rar files (non-free version)"
maintainer="skmpz <dem.procopiou@gmail.com>"
@ -12,7 +12,8 @@ checksum=505c13f9e4c54c01546f2e29b2fcc2d7fabc856a060b81e5cdfe6012a9198326
repository=nonfree
do_build() {
vsed -e 's/^\(CXXFLAGS\)=\(.*\)/\1+=\2/' \
vsed -e 's/-march=native//' \
-e 's/^\(CXXFLAGS\)=\(.*\)/\1+=\2/' \
-e 's/^\(LDFLAGS\)=\(.*\)/\1+=-lpthread \2/' \
-i makefile
make CXX="$CXX" LD="$LD" STRIP=: -f makefile