diff --git a/xzutils/build.sh b/xzutils/build.sh index 8feaa06..2b69f54 100755 --- a/xzutils/build.sh +++ b/xzutils/build.sh @@ -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 diff --git a/xzutils/meta/ChangeLog b/xzutils/meta/ChangeLog index 69c7d64..aefa016 100644 --- a/xzutils/meta/ChangeLog +++ b/xzutils/meta/ChangeLog @@ -1,4 +1,7 @@ CHANGELOG --------- +* Fri Jun 3 2011 Tom G. Christensen - 5.0.3-2 +- Workaround linker error on SunOS 5.6/x86 + * Fri Jun 3 2011 Tom G. Christensen - 5.0.3-1 - Initial package