[Buildroot] [PATCH 2/9] Fix link flags of mtdutils

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Oct 16 21:38:29 UTC 2008


Le Thu, 16 Oct 2008 17:15:40 -0400,
"hartleys" <hartleys at visionengravers.com> a écrit :

> Just did a quick glance at the patch above, I don't think it would
> work for the mtd package. The patch add TARGET_LDFLAGS to the
> TARGET_CONFIGURE_OPTS. The mtd package doesn't use Autotools so I
> don't think it will see the change.

TARGET_CONFIGURE_OPTS is supposed to be used in all packages when
calling ./configure, as far as I understand (and it's the case in the
packages I had a look at). TARGET_CONFIGURE_OPTS is of course also used
by Makefile.autotools.in.

> It should work for usbutils. But I'm not sure if the "-Wl,--rpath-link
> -Wl,$(STAGING_DIR)/usr/lib" is also needed.

Without this, I get linking problems like:

http://buildroot.uclibc.org/lists/buildroot/2008-October/010917.html

(read the whole thread for an analysis of my issue, and how I found
this solution).

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list