From patchwork Wed Sep 10 18:38:39 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: MARS: fix makefile kernel lib build order Date: Wed, 10 Sep 2008 08:38:39 -0000 From: Yuji Mano X-Patchwork-Id: 230 Message-Id: <48C8142F.9080105@am.sony.com> To: CBE Development This fixes a bug in the Makefile that would build the kernel before the lib which the kernel is dependent on. This also makes sure the kernel links the lib in the build source and not just any libmars.a it finds in the library search path. Signed-off-by: Yuji Mano Acked-by: Kazunori Asayama --- a/src/mpu/Makefile.am +++ b/src/mpu/Makefile.am @@ -36,7 +36,7 @@ # LIBRARY OR THE USE OR OTHER DEALINGS IN THE LIBRARY. # -SUBDIRS = kernel lib +SUBDIRS = lib kernel EXTRA_DIST = \ bootstrap \ --- a/src/mpu/kernel/Makefile.am +++ b/src/mpu/kernel/Makefile.am @@ -54,13 +54,12 @@ mars_kernel_CFLAGS = \ -Wmissing-declarations mars_kernel_LDFLAGS = \ - -L../lib \ -Wl,--defsym=__stack=0x0fff0 \ -Wl,-gc-sections \ -Wl,-N \ -Wl,-s -mars_kernel_LDADD = -lmars +mars_kernel_LDADD = $(builddir)/../lib/libmars.a mars_kernel_SOURCES = \ mars_kernel.c \