Tweak xzutils for SunOS 5.6/x86

This commit is contained in:
Tom G. Christensen 2011-06-03 18:52:42 +00:00 committed by Tom G. Christensen
parent 523fdb9242
commit 1b528662d9
2 changed files with 11 additions and 1 deletions

View File

@ -7,7 +7,7 @@
# Check the following 4 variables before running the script
topdir=xz
version=5.0.3
pkgver=1
pkgver=2
source[0]=http://tukaani.org/xz/$topdir-$version.tar.gz
# If there are no patches, simply comment this
#patch[0]=
@ -23,6 +23,13 @@ reg prep
prep()
{
generic_prep
if [ "$_os" = "sunos56" -a "$arch" = "i386" ]; then
# Replacing Wl,-z text with -mimpure-text is a workaround to avoid
# "ld: fatal: relocations remain against allocatable but non-writable sections"
# when linking liblzma
setdir source
sed -i 's|\${wl}-z \${wl}text|-mimpure-text|g' configure
fi
}
reg build

View File

@ -1,4 +1,7 @@
CHANGELOG
---------
* Fri Jun 3 2011 Tom G. Christensen <swpkg@jupiterrise.com> - 5.0.3-2
- Workaround linker error on SunOS 5.6/x86
* Fri Jun 3 2011 Tom G. Christensen <swpkg@jupiterrise.com> - 5.0.3-1
- Initial package