It was impossible to link test which had in its OBJS list files with same name, eg. ../../arch/x86/exception.c and ../../jit/exception.c. The reason for that is that only basename of target file is taken so that both files resolve to exception.o. Solution for this problem is to generate names for objects using whole path information, so that the first one will resolve to p-p-arch-x86-exception.o and the second one to p-p-jit-exception.o
Signed-off-by: Tomek Grabiec <[email protected]> --- scripts/build/test.mk | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/test.mk b/scripts/build/test.mk index 92d494c..cb795b6 100644 --- a/scripts/build/test.mk +++ b/scripts/build/test.mk @@ -12,11 +12,11 @@ endif %.o: %.c $(E) " CC " $@ - $(Q) $(CC) $(ARCH_CFLAGS) $(DEFAULT_CFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c $< -o `basename $...@` + $(Q) $(CC) $(ARCH_CFLAGS) $(DEFAULT_CFLAGS) $(CFLAGS) $(INCLUDE) $(DEFINES) -c $< -o `echo $@ | sed "s\/\-\g" | sed "s\[.][.]\p\g"` %.o: %.S $(E) " AS " $@ - $(Q) $(AS) $(AFLAGS) $< -o `basename $...@` + $(Q) $(AS) $(AFLAGS) $< -o `echo $@ | sed "s\/\-\g" | sed "s\[.][.]\p\g"` test: $(RUNNER) -- 1.6.0.6 ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Jatovm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jatovm-devel
