This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Configure outside of source tree


Hi Kyle,

What is your expected usage scenario?

$ mkdir -p $HOME/devel/ct-ng/code
$ cd $HOME/devel/ct-ng/code
$ hg clone http://ymorin.is-a-geek.org/hg/crosstool-ng
$ cd crosstool-ng
$ patch -p1 < ~/crosstool-ng_configure_outside_tree.patch

$ mkdir $HOME/devel/ct-ng/build
$ cd $home/devel/ct-ng/build
$ $HOME/devel/ct-ng/code/crosstool-ng/configure --prefix=$HOME/tmp
Checking for 'grep'... /usr/bin/grep
Checking whether '/usr/bin/grep' supports -E... yes
Checking for 'sed'... /usr/bin/sed
Checking whether '/usr/bin/sed' supports -i and -e... yes
Checking for 'bash'... /bin/bash
Checking for 'cut'... /usr/bin/cut
Checking for 'install'... /usr/bin/install
Checking for 'make'... /usr/bin/make
Checking for 'gcc'... /usr/bin/gcc
Checking for 'awk'... /usr/bin/awk
Checking for 'bison'... /usr/bin/bison
Checking for 'flex'... /usr/bin/flex
Checking for 'makeinfo'... /usr/bin/makeinfo
Checking for 'automake'... /usr/bin/automake
Checking for 'libtool'... /usr/bin/libtool
Checking for 'stat'... /usr/bin/stat
Checking for 'curl'... /usr/bin/curl
Checking for 'cvs'... /usr/bin/cvs
Checking for 'patch'... /usr/bin/patch
Checking for 'tar'... /bin/tar
Checking for 'gzip'... /usr/bin/gzip
Checking for 'bzip2'... /usr/bin/bzip2
Checking for 'lzma'... /usr/bin/lzma
Checking for 'readlink'... /usr/bin/readlink
Checking for 'objcopy'... /usr/bin/objcopy
Checking for 'objdump'... /usr/bin/objdump
Checking for 'readelf'... /usr/bin/readelf
Checking for 'patch'... /usr/bin/patch
Checking for 'ncurses/ncurses.h'... yes
Checking for 'libncursesw.so'... yes
Computing version string... hg_default@2355_e216439317bc+
Building up Makefile... done

crosstool-NG configured as follows:
  PREFIX='$HOME/tmp'
  BINDIR='$HOME/tmp/bin'
  LIBDIR='$HOME/tmp/lib/ct-ng-hg_default@2355_e216439317bc+'
  DOCDIR='$HOME/tmp/share/doc/ct-ng-hg_default@2355_e216439317bc+'
  MANDIR='$HOME/tmp/share/man'

Now run:
  make
  make install
$ make
make: *** No targets specified and no makefile found.  Stop.
$ ls


That's not what I was expecting :-)


On Wed, Mar 16, 2011 at 11:33 PM, Kyle Grieb <grieb.kyle@gmail.com> wrote:
> This will allow 'configure' to be called outside of the sources tree.
> Example: /tmp/foo/crosstool-ng/configure

I'm guessing this is a matter of doing things differently, but I'm not
sure what's gained by being able to configure outside the source tree
if I then have to move back to the source tree to build (or use a -C
cmdline option to 'make').

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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