Changeset 6e9746a2 in rtems


Ignore:
Timestamp:
May 15, 2002, 4:38:16 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
11f894cc
Parents:
a923a82
Message:

2002-06-15 Ralf Corsepius <corsepiu@…>

  • mkgcc3newlibspec.in: Remove SETUP (bogus).
  • gcc3newlib/target-c++.add: New.
  • gcc3newlib/Makefile.am: Add target-c++.add.
  • gcc3newlib/base-g77.add: Adapt to gcc-3.1. Reflect having split out c++. Various minor fixes.
  • gcc3newlib/base-gcc.add: Ditto.
  • gcc3newlib/gccnewlib.add: Ditto.
  • gcc3newlib/target-gcc.add: Ditto.
Location:
scripts
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • scripts/ChangeLog

    ra923a82 r6e9746a2  
     12002-06-15      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * mkgcc3newlibspec.in: Remove SETUP (bogus).
     4        * gcc3newlib/target-c++.add: New.
     5        * gcc3newlib/Makefile.am: Add target-c++.add.
     6        * gcc3newlib/base-g77.add: Adapt to gcc-3.1.
     7        Reflect having split out c++. Various minor fixes.
     8        * gcc3newlib/base-gcc.add: Ditto.
     9        * gcc3newlib/gccnewlib.add: Ditto.
     10        * gcc3newlib/target-gcc.add: Ditto.
     11
    1122002-04-20      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    213
  • scripts/gcc3newlib/Makefile.am

    ra923a82 r6e9746a2  
    99    base-g77.add target-g77.add \
    1010    base-gcj.add target-gcj.add \
    11     target-objc.add
     11    target-objc.add \
     12    target-c++.add
    1213
    1314gccnewlib.spec.in: $(SUBPACKAGES)
     
    1617CLEANFILES = gccnewlib.spec.in
    1718
    18 gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add
     19gccnewlib_c_only.spec.in: gccnewlib.add base-gcc.add target-gcc.add \
     20        target-c++.add
    1921        cat $^ \
    2022        | sed -e "s%@GCCLANGS@%\'--enable-languages=c,c++\'%g" > $@
  • scripts/gcc3newlib/base-g77.add

    ra923a82 r6e9746a2  
    1919%dir %{_prefix}/man
    2020%dir %{_prefix}/man/man1
    21 %doc %{_prefix}/man/man1/@target_alias@-g77.1
     21%doc %{_prefix}/man/man1/@target_alias@-g77.1*
    2222
    2323%post -n rtems-base-g77
  • scripts/gcc3newlib/base-gcc.add

    ra923a82 r6e9746a2  
    2121%doc %{_prefix}/info/libm.info*.gz
    2222
    23 %dir %{_prefix}/bin
    24 %{_prefix}/bin/gcov@exe_ext@
    25 %{_prefix}/bin/gccbug@exe_ext@
    26 
    2723%dir %{_prefix}/man
    2824%dir %{_prefix}/man/man1
    29 %doc %{_prefix}/man/man1/cpp.1
    30 %doc %{_prefix}/man/man1/gcov.1
    31 # %doc %{_prefix}/man/man1/cccp.1
     25%doc %{_prefix}/man/man1/cpp.1*
     26%doc %{_prefix}/man/man1/gcov.1*
    3227%dir %{_prefix}/man/man7
    33 %doc %{_prefix}/man/man7/fsf-funding.7
    34 %doc %{_prefix}/man/man7/gfdl.7
    35 %doc %{_prefix}/man/man7/gpl.7
     28%doc %{_prefix}/man/man7/fsf-funding.7*
     29%doc %{_prefix}/man/man7/gfdl.7*
     30%doc %{_prefix}/man/man7/gpl.7*
    3631
    3732%dir %{_prefix}/include
    38 %{_prefix}/include/g++-v3
    3933
    4034%post -n rtems-base-gcc
  • scripts/gcc3newlib/gccnewlib.add

    ra923a82 r6e9746a2  
    6161%prep
    6262# untar the sources inside @target_alias@-gcc-newlib
    63 %setup -c -n %{name} @SETUP@
     63%setup -c -T -n %{name} -a0 -a1
    6464
    6565@PATCH2@
     
    6767
    6868  # Fix timestamps
    69   gcc-@gcc_version@/contrib/gcc_update --touch
     69  cd gcc-@gcc_version@
     70    contrib/gcc_update --touch
     71  cd ..
     72
    7073  # Copy the C library into gcc's source tree
    7174  ln -s ../newlib-@newlib_version@/newlib gcc-@gcc_version@
     
    8285  ../gcc-@gcc_version@/configure $CONFIGURE_ARGS --target=@target_alias@ \
    8386    --with-gnu-as --with-gnu-ld --with-newlib --verbose \
     87    --with-system-zlib --disable-nls \
     88    --enable-version-specific-runtime-libs \
    8489    --enable-threads=rtems --prefix=%{_prefix} @GCCLANGS@
    85 
    8690  make all
    8791  make info
     
    9498#    $RPM_BUILD_ROOT%{_prefix}/@target_alias@/bin
    9599#
    96  
     100
    97101  make prefix=$RPM_BUILD_ROOT%{_prefix} install
    98102  cd @target_alias@/newlib
    99103  make prefix=$RPM_BUILD_ROOT%{_prefix} install-info
     104  # cd back to build/
     105  cd ../..
    100106
    101107  # Bug in gcc-3.0.x: It puts the build dirs into *.la files
    102108  files=`find ${RPM_BUILD_ROOT}%{_prefix}/@target_alias@/lib -name '*.la'`
    103   for i in $files; do
     109  test -n "$files" && for i in $files; do
    104110    rm -f $i
    105111  done
    106 
    107   # cd back to build/
    108   cd ../..
    109112
    110113  # Bug in gcc-2.95.x: It bogusly tries to share cpp for all targets.
     
    127130
    128131  # Collect multilib subdirectories
     132  f=`gcc/xgcc -Bgcc/ --print-multi-lib | sed -e 's,;.*$,,'`
     133
    129134  TGTDIR="%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@"
    130   f=`gcc/xgcc -Bgcc/ --print-multi-lib | sed -e 's,;.*$,,'`
     135  for i in $f; do
     136    case $i in
     137    \.) echo "%dir ${TGTDIR}" >> dirs
     138      ;;
     139    *)  echo "%dir ${TGTDIR}/$i" >> dirs
     140      ;;
     141    esac
     142  done
     143
     144  TGTDIR="%{_prefix}/@target_alias@/lib"
    131145  for i in $f; do
    132146    case $i in
     
    143157  cp dirs files.objc
    144158  cp dirs files.gcj
     159  cp dirs files.g++
    145160
     161  TGTDIR="%{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@"
    146162  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
    147163  for i in $f; do
    148164    case $i in
     165    *lib*.la);; # ignore: gcc produces bogus libtool libs
    149166    *f771) ;;
    150167    *cc1obj) ;;
    151168    *libobjc*) echo "$i" >> files.objc ;;
    152169    *include/objc*) ;;
     170    *include/g++*);;
    153171    *jc1) ;;
    154172    *jvgenmain) ;;
     173    *libstdc++.a) echo "$i" >> files.g++ ;;
     174    *libsupc++.a) echo "$i" >> files.g++ ;;
    155175    *) echo "$i" >> files.gcc ;;
     176    esac
     177  done
     178
     179  TGTDIR="%{_prefix}/@target_alias@/lib"
     180  f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
     181  for i in $f; do
     182    case $i in
     183    *lib*.la);; # ignore - gcc produces bogus libtool libs
     184    *libiberty.a) ;; # ignore - GPL'ed
     185# all other files belong to gcc
     186    *) echo "$i" >> files.gcc ;;
    156187    esac
    157188  done
     
    161192  test "$RPM_BUILD_ROOT" = "%{_tmppath}/%{name}" && \
    162193    rm -rf $RPM_BUILD_ROOT
    163 
  • scripts/gcc3newlib/target-gcc.add

    ra923a82 r6e9746a2  
    1414
    1515%files -n @target_alias@-gcc -f build/files.gcc
    16 %doc %{_prefix}/man/man1/@target_alias@-gcc.1
    17 %doc %{_prefix}/man/man1/@target_alias@-g++.1
     16%doc %{_prefix}/man/man1/@target_alias@-gcc.1*
    1817
    1918%{_prefix}/bin/@target_alias@-cpp@exe_ext@
    20 %{_prefix}/bin/@target_alias@-c++@exe_ext@
    21 %{_prefix}/bin/@target_alias@-g++@exe_ext@
    2219%{_prefix}/bin/@target_alias@-gcc@exe_ext@
    23 %{_prefix}/bin/@target_alias@-c++filt@exe_ext@
    24 # %{_prefix}/bin/@target_alias@-protoize@exe_ext@
    25 # %{_prefix}/bin/@target_alias@-unprotoize@exe_ext@
     20%{_prefix}/bin/@target_alias@-gcov@exe_ext@
     21%{_prefix}/bin/@target_alias@-gccbug@exe_ext@
     22%{_prefix}/@target_alias@/include
    2623
    2724%dir %{_prefix}/lib/gcc-lib/@target_alias@/@gcc_version@/include
    28 
    29 %{_prefix}/@target_alias@
    30 
  • scripts/mkgcc3newlibspec.in

    ra923a82 r6e9746a2  
    6363PATCH1="Patch${patchn}: gcc-${gcc3_version}-rtems-${gcc3_patch_version}.diff"
    6464PATCH2="%patch${patchn} -p0"
    65 SETUP="${SETUP} -a${patchn}"
    6665fi
    6766
     
    7069PATCH3="Patch${patchn}: newlib-${gcc3newlib_version}-rtems-${gcc3newlib_patch_version}.diff"
    7170PATCH4="%patch${patchn} -p0"
    72 SETUP="${SETUP} -a${patchn}"
    7371fi
    7472
     
    7876    -e "s,@PATCH3\@,${PATCH3}," \
    7977    -e "s,@PATCH4\@,${PATCH4}," \
    80     -e "s,@SETUP\@,${SETUP}," \
    8178    -e "s%@Release\@%${gcc3newlib_rpm_release}%g" \
    8279    -e "s%@target_alias\@%${target_alias}%g" \
Note: See TracChangeset for help on using the changeset viewer.