Fix ndk-build unit test.

The test has to define TARGET_OBJ_EXTENSION since it is run
before anything that does that.

Change-Id: I3928e69ce9953242211d8baff1287b087e70603f
diff --git a/build/core/definitions.mk b/build/core/definitions.mk
index f139aea..92ed684 100644
--- a/build/core/definitions.mk
+++ b/build/core/definitions.mk
@@ -1271,6 +1271,7 @@
     ))
 
 -test-get-object-name = \
+  $(eval TARGET_OBJ_EXTENSION=.o)\
   $(eval LOCAL_CPP_EXTENSION ?= .cpp)\
   $(call test-expect,foo.o,$(call get-object-name,foo.c))\
   $(call test-expect,bar.o,$(call get-object-name,bar.s))\