Bug 562664 Linux static build bustage with "undefined reference to mozilla::gfx::ConvertYCbCrToRGB32". r=ted
authorMark Banner <bugzilla@standard8.plus.com>
Fri, 30 Apr 2010 21:46:25 +0100
changeset 41655 d917796fa333a8029100e65e236edf7f36bfcd7b
parent 41654 c475fc8bac211cda81ccccaaa2e879a353159d09
child 41656 3370b99a219642d669067483b60fba8f04a721cd
push idunknown
push userunknown
push dateunknown
reviewersted
bugs562664
milestone1.9.3a5pre
Bug 562664 Linux static build bustage with "undefined reference to mozilla::gfx::ConvertYCbCrToRGB32". r=ted
gfx/Makefile.in
--- a/gfx/Makefile.in
+++ b/gfx/Makefile.in
@@ -47,23 +47,25 @@ MODULE		= gfx
 ifdef MOZ_TREE_CAIRO
 DIRS		= cairo
 endif
 
 # In static builds, ycbcr must appear after layers in
 # the link line on linux. This order is defined by the
 # order listed in DIRS. On shared builds ycbcr must
 # be built first so the order is reversed.
-ifdef BUILD_STATIC_LIBS
-DIRS		+= layers ycbcr
-else
-DIRS            += ycbcr layers
+ifndef BUILD_STATIC_LIBS
+DIRS		+= ycbcr
 endif
 
-DIRS		+= public idl src qcms thebes src/thebes
+DIRS		+= public idl src qcms layers thebes src/thebes
+
+ifdef BUILD_STATIC_LIBS
+DIRS		+= ycbcr
+endif
 
 ifdef MOZ_IPC
 DIRS		+= ipc
 endif
 
 ifdef ENABLE_TESTS
 ifndef MOZ_ENABLE_LIBXUL
 TOOL_DIRS	+= tests