OSDN Git Service

linker: Switch to clang
authorDmitriy Ivanov <dimitry@google.com>
Mon, 12 Oct 2015 23:27:32 +0000 (16:27 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Tue, 13 Oct 2015 01:20:26 +0000 (18:20 -0700)
x86_64 gcc exports malloc/free and co functions because they
are defined with visibility "default" somewhere in gcc builtins;
and vector d-tors for some reason. Switching to clang fixes
this problem.

Bug: http://b/24785482
Change-Id: I741503b4b446523e7ff3fb16de13ed99991fd0c0

linker/Android.mk

index 585a738..8be53a1 100644 (file)
@@ -2,7 +2,9 @@ LOCAL_PATH := $(call my-dir)
 
 include $(CLEAR_VARS)
 
-LOCAL_SRC_FILES:= \
+LOCAL_CLANG := true
+
+LOCAL_SRC_FILES := \
     debugger.cpp \
     dlfcn.cpp \
     linker.cpp \