Ignore:
Timestamp:
Aug 12, 2002, 10:11:44 AM (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a81b432
Parents:
f471a45c
Message:

2002-08-12 Ralf Corsepius <corsepiu@…>

  • mkgcc3newlibspec.in: Remove
  • gcc3newlib/mkspec.in: New.
  • configure.ac: Reflect changes above.
  • gcc3newlib/gccnewlib.add: Add build_XXX defines. Add preliminary gnat support.
  • gcc3newlib/base-g77.add: Add build_g77.
  • gcc3newlib/base-gcj.add: Add build_gcj.
  • gcc3newlib/base-gnat.add: New.
  • gcc3newlib/target-c++.add: Add build_cxx.
  • gcc3newlib/target-g77.add: Add build_g77.
  • gcc3newlib/target-gcj.add: Add build_gcj.
  • gcc3newlib/target-objc.add: Add build_objc.
  • gcc3newlib/target-gnat.add: New.
  • gcc3newlib/Makefile.am: Use ./mkspec. Use unified spec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/gcc3newlib/gccnewlib.add

    rf471a45c r4aba88a1  
    4444NoSource:       1
    4545
     46%define build_cxx       1
     47%define build_g77       0
     48%define build_objc      0
     49%define build_gcj       0
     50%define build_gnat      0
     51
     52%if "@target_alias@"     == "c4x-rtems"
     53%define build_gnat      0
     54%define build_cxx       0
     55%elseif "@target_alias@" == "i386-rtems"
     56%define build_gnat      1
     57%elseif "@target_alias@" == "i960-rtems"
     58%define build_gnat      0
     59%define build_cxx       0
     60%elseif "@target_alias@" == "powerpc-rtems"
     61%define build_gnat      1
     62%elseif "@target_alias@" == "sparc-rtems"
     63%define build_gnat      1
     64%endif
     65
    4666%description
    4767RTEMS is an open source operating system for embedded systems.
     
    83103# %endif
    84104
     105  languages="c,c++"
     106%if %build_g77
     107  languages="$languages,g77"
     108%endif
     109%if %build_gcj
     110  languages="$languages,gcj"
     111%endif
     112%if %build_objc
     113  languages="$languages,objc"
     114%endif
     115%if %build_gnat
     116  languages="$languages,ada"
     117%endif
    85118  ../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \
    86119    --with-gnu-as --with-gnu-ld --with-newlib --verbose \
    87120    --with-system-zlib --disable-nls \
    88121    --enable-version-specific-runtime-libs \
    89     --enable-threads=rtems --prefix=%{_prefix} @GCCLANGS@
     122    --enable-threads=rtems --prefix=%{_prefix} \
     123    --enable-languages=$languages
     124%if %build_gnat
     125  cd ../gcc-@gcc_version@/gcc/ada
     126  touch treeprs.ads [es]info.h nmake.ad[bs]
     127  cd ../../../build
     128%endif
    90129  make all
     130%if %build_gnat
     131  cd gcc
     132# This is what is documented, but it doesn't work for me (RC)
     133#  make gnatlib_and_tools
     134  make cross-gnattools
     135  cd ..
     136%endif
    91137  make info
    92138
     
    101147  make prefix=$RPM_BUILD_ROOT%{_prefix} install
    102148  cd @target_alias@/newlib
    103   make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
     149  make prefix=$RPM_BUILD_ROOT%{_prefix} \
     150    bindir=$RPM_BUILD_ROOT%{_bindir} install-info
    104151  # cd back to build/
    105152  cd ../..
Note: See TracChangeset for help on using the changeset viewer.