All of lore.kernel.org
 help / color / mirror / Atom feed
* What's up with "fontconfig"
@ 2013-02-01 14:56 Mike Looijmans
  2013-02-01 15:09 ` Burton, Ross
  2013-02-01 15:21 ` Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Looijmans @ 2013-02-01 14:56 UTC (permalink / raw)
  To: openembedded-core

When compiling fontconfig, it fails because it is using "build" flags in 
the host compiler. I have BUILD_OPTIMIZATIONS="-march=native ..." set, 
and fontconfig will fail to compile because it passes the -march=native 
flag to the ARM compiler which then fails. Which is justified.

This is the part in the recipe that worries me:

do_configure_append () {
	sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-case/Makefile
	sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-glyphname/Makefile
	sed -i 's|LDFLAGS =.*|LDFLAGS =|' fc-lang/Makefile

	sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-case/Makefile
	sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-glyphname/Makefile
	sed -i 's|CFLAGS =.*|CFLAGS =${BUILD_CFLAGS}|' fc-lang/Makefile

	sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-case/Makefile
	sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-glyphname/Makefile
	sed -i 's|CPPFLAGS =.*|CPPFLAGS =${BUILD_CPPFLAGS}|' fc-lang/Makefile

	sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-case/Makefile
	sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-glyphname/Makefile
	sed -i 's|CXXFLAGS =.*|CFLAGS =${BUILD_CXXFLAGS}|' fc-lang/Makefile

}

This is not a "native" package. The above commands put the build systems 
include patch and compiler flags into the makefile.

I've worked around the issue by creating a a bbappend that simply 
removes "-march=native" from the build flags, which makes the build of 
this package succeed.

I have no idea what fontconfig is supposed to do and where it is 
supposed to run, but it looks to me as if that configure_append should 
not be there at all.


-- 
Mike Looijmans - TOPIC Automation



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-02-01 19:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 14:56 What's up with "fontconfig" Mike Looijmans
2013-02-01 15:09 ` Burton, Ross
2013-02-01 15:18   ` Burton, Ross
2013-02-01 15:21 ` Richard Purdie
2013-02-01 17:22   ` Burton, Ross
2013-02-01 19:15     ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.