This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

How to build newlib/libgloss


I configured newlib for sparc-sun-solaris2 and built it with egcs.  This
works, but it does not build libgloss.

So I compiled libgloss specifically and tried to build it but nothing
happens.  Well, actually something does happen, but it does nothing:

    [rutt@gertie libgloss]$ make
    about to make
    make[1]: Entering directory `/home/rutt/src/newlib-1.8.0/sparc-sun-solaris2/libgloss/doc'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/rutt/src/newlib-1.8.0/sparc-sun-solaris2/libgloss/doc'
    make[1]: Entering directory `/home/rutt/src/newlib-1.8.0/sparc-sun-solaris2/libgloss'
    if [ -z "" ]; then \
      true; \
    else \
      rootpre=`pwd`/; export rootpre; \
      srcrootpre=`cd .; pwd`/; export srcrootpre; \
      lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
      compiler="sparc-sun-solaris2-gcc"; \
      for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
        dir=`echo $i | sed -e 's/;.*$//'`; \
        if [ "${dir}" = "." ]; then \
          true; \
        else \
          if [ -d ../${dir}/${lib} ]; then \
            flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
            if (cd ../${dir}/${lib}; make "CC=sparc-sun-solaris2-gcc" "CFLAGS=" "AR=sparc-sun-solaris2-ar" "RANLIB=sparc-sun-solaris2-ranlib" "AR_FLAGS=qc" "MAKEINFO=makeinfo" "AS=as" "LD=ld" "CROSS_CFLAGS=" "TARGET_CFLAGS=" "exec_prefix=/home/rutt/cross/sparc-sun-solaris2" "prefix=/home/rutt/cross/sparc-sun-solaris2" "tooldir=/home/rutt/cross/sparc-sun-solaris2/sparc-sun-solaris2" "INSTALL=/usr/bin/install -c" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" \
                            CFLAGS=" ${flags}" \
                            CXXFLAGS=" ${flags}" \
                            LIBCFLAGS=" ${flags}" \
                            LIBCXXFLAGS=" ${flags}" \
                            all); then \
              true; \
            else \
              exit 1; \
            fi; \
          else true; \
          fi; \
        fi; \
      done; \
    fi
    make[1]: Leaving directory `/home/rutt/src/newlib-1.8.0/sparc-sun-solaris2/libgloss'

Any clues?