fix ppc64 build (#239101)

epel9
Bill Nottingham 18 years ago
parent e868d94155
commit 05ab7c5ac0

@ -0,0 +1,19 @@
--- aalib-1.4.0/ltconfig.foo 2007-05-04 08:47:13.000000000 -0400
+++ aalib-1.4.0/ltconfig 2007-05-04 08:48:26.000000000 -0400
@@ -1994,16 +1994,6 @@ linux-gnu*)
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
deplibs_check_method=pass_all
-
- if test -f /lib/ld.so.1; then
- dynamic_linker='GNU ld.so'
- else
- # Only the GNU ld.so supports shared libraries on MkLinux.
- case "$host_cpu" in
- powerpc*) dynamic_linker=no ;;
- *) dynamic_linker='Linux ld.so' ;;
- esac
- fi
;;
netbsd*)

@ -3,7 +3,7 @@
Summary: ASCII art library
Name: aalib
Version: 1.4.0
Release: 0.11.%{rc_subver}%{?dist}
Release: 0.12.%{rc_subver}%{?dist}
License: LGPL
Group: System Environment/Libraries
URL: http://aa-project.sourceforge.net/aalib/
@ -12,6 +12,7 @@ Patch0: aalib-aclocal.patch
Patch1: aalib-config-rpath.patch
Patch2: aalib-1.4rc5-bug149361.patch
Patch3: aalib-1.4rc5-rpath.patch
Patch4: aalib-ppc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: slang-devel libXt-devel gpm-devel ncurses-devel
@ -41,6 +42,7 @@ with aalib.
%patch1 -p0
%patch2 -p1 -b .bug149361
%patch3 -p1 -b .rpath
%patch4 -p1 -b .ppc
sed -i -e 's/^\(.*SHARED.*\)@AALIB_LIBS@/\1 -laa/' aalib-config.in
# sigh stop autoxxx from rerunning because of our patches above.
touch aclocal.m4
@ -101,6 +103,9 @@ fi
%{_datadir}/aclocal/aalib.m4
%changelog
* Fri May 4 2007 Bill Nottingham <notting@redhat.com> 1.4.0-0.12.rc5
- remove some dainbramage in ltconfig so it builds shared libs on ppc64
* Thu Oct 19 2006 Garrick Staples <garrick@usc.edu> 1.4.0-0.11.rc5
- incorrect subversion in previous two changelog entries

Loading…
Cancel
Save