Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] how to get compilation environment right?
@ 2009-03-21 23:21 Robert Urban
  0 siblings, 0 replies; only message in thread
From: Robert Urban @ 2009-03-21 23:21 UTC (permalink / raw)
  To: buildroot

Hi Folks,

I'm trying to build cpufrequtils-005, which doesn't use configure.  Instead
it has a simple makefile:

	http://www.spielwiese.de/rob/Buildroot/Makefile

which uses libtool to compile library objects as follows:

	$(LIBTOOL) $(LIBTOOL_OPT) --mode=compile \
		$(CC) $(CFLAGDEF) $(CFLAGS) -o $@ -c $*.c

the library gets built without errors, but when make tries to link a utility
which uses the library, I see complaints about undefined symbols in the form
of "function at GLIBC_2.0", and that "libc.so.6" (which is the host libc) is
needed, but not found.

If I compare a gcc line from cpufrequtils to something sucessful, I notice
that the gcc flags "-sysroot" and "-isysroot" are not present, which would
seem to explain why the host libc is being linked against.

What is the proper method of sorting out such problems?

thanks,

Rob Urban

P.S. the buildroot config I'm using can be seen here:

	http://www.spielwiese.de/rob/Buildroot/config

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-21 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-21 23:21 [Buildroot] how to get compilation environment right? Robert Urban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox