Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [linux-distros-dev] Cross-compiling under CDT autotools

Matt Hoosier wrote:
Hi,

My company is interested in using Eclipse and CDT for embedded Linux development. In the past, we've used some other IDE's that have built-in knowledge of autoconf/automake, and by adding plugins to modify the shell environment just prior to executing the 'configure' and 'make' steps, been able to fairly easily divert the normal Autotools workflow to instead consult a cross-compiled sysroot directory for libraries and headers.

I'm not clear on what the best way to do this is in CDT autotools. The code which spawns 'autoconf', for example, doesn't really consult any extension points to allow outside plug-ins the ability to customize the environment variables (say, CFLAGS, CPPFLAGS, LDFLAGS, ...) or the path at which the autoconf binary will be found. Do you have any ideas on a good way to do this?

The autoconf/aclocal/automake binary paths can be set in the Autotools->Tools Settings found in the Project Properties. They are per configuration. The defaults are just aclocal, autoconf, automake.

As for CFLAGS/CPPFLAGS/LDFLAGS, I'm not sure why you want to set these when running autoconf/automake/aclocal. For running make, you can set these environment variables per configuration in the Project Properties.

-- Jeff J.

Regards,

Matt Hoosier
------------------------------------------------------------------------

_______________________________________________
linux-distros-dev mailing list
linux-distros-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/linux-distros-dev



Back to the top