Changeset 61f41e2 in rtems


Ignore:
Timestamp:
Nov 17, 2003, 12:52:01 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3da33bf8
Parents:
0a2ee12
Message:

2003-11-17 Ralf Corsepius <corsepiu@…>

  • gcc3newlib/gccnewlib.add: Add hacks to make gnatlib buildable.
  • gcc3newlib/base-gnat.add: Add info files.
Location:
scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/ChangeLog

    r0a2ee12 r61f41e2  
     12003-11-17      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * gcc3newlib/gccnewlib.add: Add hacks to make gnatlib
     4        buildable.
     5        * gcc3newlib/base-gnat.add: Add info files.
     6
    172003-10-30      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    28
  • scripts/gcc3newlib/base-gnat.add

    r0a2ee12 r61f41e2  
    1515%defattr(-,root,root)
    1616%dir %{_prefix}/bin
    17 # %{_prefix}/bin/gnat*
     17
     18%if "%{gcc_version}" >= "3.3"
     19%{_prefix}/info/gnat*
    1820%endif
     21
     22%if "%{gcc_version}" >= "3.3"
     23%post -n %{rpmprefix}rtems@osversion@-base-gnat
     24  if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
     25  then
     26    rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
     27    f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
     28    test -n "$f" && for i in $f; do
     29      install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
     30    done
     31  fi
     32
     33%postun -n %{rpmprefix}rtems@osversion@-base-gnat
     34  if test -d $RPM_INSTALL_PREFIX%{_prefix}/info;
     35  then
     36    rm -f $RPM_INSTALL_PREFIX%{_prefix}/info/dir
     37    f=`find $RPM_INSTALL_PREFIX%{_prefix}/info -name '*.info.gz'`
     38    test -n "$f" && for i in $f; do
     39      install-info $i $RPM_INSTALL_PREFIX%{_prefix}/info/dir
     40    done
     41  fi
     42%endif
     43%endif
  • scripts/gcc3newlib/gccnewlib.add

    r0a2ee12 r61f41e2  
    218218#  make -C gcc gnatlib
    219219
     220%if "%{gcc_version}" >= "3.3"
     221# gcc >= 3.3
     222  rm -rf gnatlib
     223  mkdir gnatlib
     224  pushd gnatlib
     225  ACC="../gcc/xgcc -B../gcc/ -B../%{gcc_target}/newlib/"
     226  ACC="$ACC -isystem ../%{gcc_target}/newlib/targ-include"
     227  ACC="$ACC -isystem ../../newlib-%{newlib_version}/newlib/libc/include"
     228  CC="$ACC" ../../gcc-%{gcc_version}/gcc/configure --disable-nls \
     229     --host=%{gcc_target} --target=%{gcc_target} --enable-languages=ada
     230  popd
     231  make -C gcc/ada ../stamp-gnatlib1 LN_S="ln -s"
     232  rm -f gcc/ada/rts/auto-target.h gcc/ada/rts/config.h
     233  cp gnatlib/auto-host.h gcc/ada/rts/auto-target.h
     234  sed -e 's,auto-host,auto-target,' < gcc/config.h > gcc/ada/rts/config.h
     235%endif
    220236# This is what gcc/ada/Makefile.in contains by default,
    221237# but what we override below
     
    224240  GNATLIBCFLAGS="$GNATLIBCFLAGS -isystem `pwd`/%{gcc_target}/newlib/targ-include"
    225241  GNATLIBCFLAGS="$GNATLIBCFLAGS -isystem `pwd`/../newlib-%{newlib_version}/newlib/libc/include"
     242  GNATLIBCFLAGS="$GNATLIBCFLAGS -isystem `pwd`/../gcc-%{gcc_version}/include"
    226243# Without this xgcc doesn't find the target's binutils.
    227244  GNATLIBCFLAGS="$GNATLIBCFLAGS -B%{_prefix}/%{gcc_target}/bin/"
Note: See TracChangeset for help on using the changeset viewer.