From: David McCullough (davidm@snapgear.com)
Date: Thu Oct 24 2002 - 08:47:39 EDT
Jivin Vadim Lebedev lays it down ... > Hello > > I'm planning to port to uClinux an application which uses autotools for > configuration. > I want to integrate it into the uClinux distro build system. > > I'd like to have tips about possible known pitfalls and tricks to do it, Usually apps like this can be built from a seperate directory. This is the best way to do it. Create a Makefile that does something like: all: build-dir clean: rm -rf build-dir romfs: ... build-dir: mkdir build-dir (cd build-dir; CC="$(CC)" CFLAGS="$(CFLAGS)" LIBS="$(LDLIBS)" \ ../configure As for the correct configure line you will need to play with that until you get it to go. Not all configure based apps can be made to compile cleanly like this. In that case I suggest either creating your own makefiles from scratch using the Makefile.in files as templates or run configure on your host linux system then edit the files to make it build within the distro. Hope that helps some, I am fairly sure this was covered in an old email on the list, check the archives, Cheers, Davidm -- David McCullough: Ph: +61 7 3435 2815 http://www.SnapGear.com davidm@snapgear.com Fx: +61 7 3891 3630 Custom Embedded Solutions + Security This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/
This archive was generated by hypermail 2.1.4 : Thu Oct 24 2002 - 10:03:21 EDT