[Buildroot] [PATCH 2/2] Adjust v86d.mk per better source URL and build method.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon May 7 13:45:41 UTC 2012


Le Mon, 7 May 2012 08:47:10 -0400,
Dimitry Golubovsky <golubovsky at gmail.com> a écrit :

> >> +define V86D_BUILD_CMDS
> >> +     $(MAKE) CC="$(TARGET_CC) -D__i386__" LD="$(TARGET_LD)" -C
> >> $(@D) all
> >
> > You can used $(TARGET_CONFIGURE_OPTS) here as well.
> 
> I tried that, and it did not compile. -D__i386__ should be given
> explicitly to cc.

This -D is rather a CFLAGS, so:

	$(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D__i386__" -C $(@D) all

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


More information about the buildroot mailing list