OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rtems-20020807/] [contrib/] [solaris/] [sparc-solaris-gcc.spec.in] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#
2
# spec file for building gcc for solaris
3
#
4
 
5
%define gcc_version @GCC_VERS@
6
%define gcc_rpmvers @GCC_RPMVERS@
7
 
8
Vendor:         OAR Corporation
9
Distribution:   Linux
10
Name:           sparc-solaris-gcc
11
Summary:        sparc-solaris gcc.
12
Requires:       sparc-solaris-binutils
13
Requires:       sparc-solaris-libs
14
Group:          solaris
15
Release:        @GCC_RPMREL@
16
License:        gcc is GPL/LGPL
17
Prefix:         /opt/solaris
18
Autoreqprov:    on
19
Packager:       joel@OARcorp.com
20
Version:        %gcc_rpmvers
21
 
22
Source0:        ftp://sourceware.cygnus.com/pub/solaris/latest/gcc/gcc-%{gcc_version}.tar.gz
23
NoSource:       0
24
 
25
BuildRoot:      @RPM_BUILD_ROOT@
26
 
27
%description
28
Cross gcc for target solaris
29
 
30
%prep
31
# untar the sources inside sparc-solaris-gcc
32
%setup -c -n %{name} -a 0
33
 
34
  test -d build || mkdir build
35
 
36
%build
37
  cd build
38
 
39
  ../gcc-%{gcc_version}/configure --target=sparc-solaris \
40
    --with-gnu-as --with-gnu-ld --without-newlib --verbose \
41
    --disable-shared --disable-nls --enable-languages=c \
42
    --prefix=%{prefix}
43
 
44
  make all
45
# We don't want info files
46
  make info
47
 
48
%install
49
  cd build
50
  # Bug in gcc-2.95.1: It doesn't build this installation directory
51
  # If it doesn't find it, gcc doesn't install sparc-solaris/bin/gcc
52
  ../gcc-%{gcc_version}/mkinstalldirs \
53
    $RPM_BUILD_ROOT%{prefix}/sparc-solaris/bin
54
 
55
  make prefix=$RPM_BUILD_ROOT%{prefix} install
56
  # cd back to build/
57
  cd ..
58
 
59
  # We don't want info files
60
  rm -rf $RPM_BUILD_ROOT%{prefix}/info
61
 
62
  # libiberty comes from solaris-libs or binutils
63
  rm -f $RPM_BUILD_ROOT%{prefix}/sparc-solaris/lib/libiberty.a
64
  rm -f $RPM_BUILD_ROOT%{prefix}/lib/libiberty.a
65
 
66
  pwd
67
  find $RPM_BUILD_ROOT%{prefix} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g" >files.list
68
 
69
%clean
70
# let rpm --clean remove BuildRoot iff using the default BuildRoot
71
  test "$RPM_BUILD_ROOT" = "@RPM_BUILD_ROOT@" && \
72
    rm -rf $RPM_BUILD_ROOT
73
 
74
%files -f files.list

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.