* commit 'bda15698bc59ba307f5faabf7efd22ae9ecac136': Add explicit -m32/-melf_i386 for x86 target
This commit is contained in:
commit
3dbb077c5a
@ -520,7 +520,8 @@ endif # !arm
|
|||||||
|
|
||||||
ifeq ($(TARGET_ARCH),x86)
|
ifeq ($(TARGET_ARCH),x86)
|
||||||
libc_common_cflags += -DSOFTFLOAT
|
libc_common_cflags += -DSOFTFLOAT
|
||||||
libc_crt_target_cflags :=
|
libc_crt_target_cflags := -m32
|
||||||
|
libc_crt_target_ldflags := -melf_i386
|
||||||
ifeq ($(ARCH_X86_HAVE_SSE2),true)
|
ifeq ($(ARCH_X86_HAVE_SSE2),true)
|
||||||
libc_crt_target_cflags += -DUSE_SSE2=1
|
libc_crt_target_cflags += -DUSE_SSE2=1
|
||||||
endif
|
endif
|
||||||
@ -650,7 +651,7 @@ ALL_GENERATED_SOURCES += $(GEN)
|
|||||||
GEN := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_static.o
|
GEN := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_static.o
|
||||||
$(GEN): $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_static1.o $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbrand.o
|
$(GEN): $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_static1.o $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbrand.o
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
$(hide) $(TARGET_LD) -r -o $@ $^
|
$(hide) $(TARGET_LD) $(libc_crt_target_ldflags) -r -o $@ $^
|
||||||
ALL_GENERATED_SOURCES += $(GEN)
|
ALL_GENERATED_SOURCES += $(GEN)
|
||||||
|
|
||||||
GEN := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic1.o
|
GEN := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic1.o
|
||||||
@ -665,7 +666,7 @@ ALL_GENERATED_SOURCES += $(GEN)
|
|||||||
GEN := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic.o
|
GEN := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic.o
|
||||||
$(GEN): $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic1.o $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbrand.o
|
$(GEN): $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbegin_dynamic1.o $(TARGET_OUT_INTERMEDIATE_LIBRARIES)/crtbrand.o
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
$(hide) $(TARGET_LD) -r -o $@ $^
|
$(hide) $(TARGET_LD) $(libc_crt_target_ldflags) -r -o $@ $^
|
||||||
ALL_GENERATED_SOURCES += $(GEN)
|
ALL_GENERATED_SOURCES += $(GEN)
|
||||||
|
|
||||||
# We rename crtend.o to crtend_android.o to avoid a
|
# We rename crtend.o to crtend_android.o to avoid a
|
||||||
|
Loading…
Reference in New Issue
Block a user