Code drop from //branches/cupcake/...@124589
diff --git a/core/binary.mk b/core/binary.mk
index d144cdd..6741b43 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -34,9 +34,11 @@
# Certain modules like libdl have to have symbols resolved at runtime and blow
# up if --no-undefined is passed to the linker.
+ifeq ($(strip $(LOCAL_NO_DEFAULT_COMPILER_FLAGS)),)
ifeq ($(strip $(LOCAL_ALLOW_UNDEFINED_SYMBOLS)),)
LOCAL_LDFLAGS := $(LOCAL_LDFLAGS) $($(my_prefix)NO_UNDEFINED_LDFLAGS)
endif
+endif
###########################################################
## Define arm-vs-thumb-mode flags.