diff --git a/core/definitions.mk b/core/definitions.mk index 45bb3f745..a44ffdb1f 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1368,7 +1368,7 @@ define transform-o-to-shared-lib-inner $(hide) $(PRIVATE_CXX) \ -nostdlib -Wl,-soname,$(notdir $@) \ -Wl,--gc-sections \ - $(if $(filter true,$(PRIVATE_CLANG)),-shared,-Wl,-shared) \ + $(if $(filter true,$(PRIVATE_CLANG)),-shared,-Wl$(comma)-shared) \ $(PRIVATE_TARGET_GLOBAL_LD_DIRS) \ $(if $(filter true,$(PRIVATE_NO_CRT)),,$(PRIVATE_TARGET_CRTBEGIN_SO_O)) \ $(PRIVATE_ALL_OBJECTS) \ diff --git a/core/host_dalvik_java_library.mk b/core/host_dalvik_java_library.mk index e8823be28..647289b58 100644 --- a/core/host_dalvik_java_library.mk +++ b/core/host_dalvik_java_library.mk @@ -20,6 +20,7 @@ # They will be compiled against libcore and not the host JRE. # +ifeq ($(HOST_OS),linux) USE_CORE_LIB_BOOTCLASSPATH := true ####################################### @@ -135,3 +136,5 @@ $(LOCAL_BUILT_MODULE): $(built_dex) $(java_resource_sources) endif # LOCAL_USE_JACK USE_CORE_LIB_BOOTCLASSPATH := + +endif diff --git a/core/host_dalvik_static_java_library.mk b/core/host_dalvik_static_java_library.mk index c0a488ca6..6fe460ebe 100644 --- a/core/host_dalvik_static_java_library.mk +++ b/core/host_dalvik_static_java_library.mk @@ -19,6 +19,7 @@ # These libraries will be compiled against libcore and not the host # JRE. # +ifeq ($(HOST_OS),linux) USE_CORE_LIB_BOOTCLASSPATH := true LOCAL_JAVA_LIBRARIES += core-libart-hostdex @@ -43,3 +44,5 @@ $(full_classes_jack): $(java_sources) $(java_resource_sources) $(full_jack_lib_d $(java-to-jack) USE_CORE_LIB_BOOTCLASSPATH := + +endif