[Buildroot] [PATCH 2/9] Fix link flags of mtdutils
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
> 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:
(read the whole thread for an analysis of my issue, and how I found
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
More information about the buildroot