Do not set entry-point for Windows

Bug: http://b/62424007

This breaks 64-bit Windows executables.  Probably due to the Clang
migration, the entry-point need not be set even for 32-bit executables.

Test: 32-bit and 64-bit aapt2_tests.exe and ziparchive-tests.exe can
start.  (There are some failed tests, though).

Change-Id: I1dea9137c79c5f26b493640cfae0856c1a7ea301
This commit is contained in:
Pirama Arumuga Nainar 2018-06-27 10:55:20 -07:00
parent 14add31780
commit b448834e96
1 changed files with 0 additions and 4 deletions

View File

@ -1986,10 +1986,6 @@ ifdef BUILD_HOST_static
HOST_FPIE_FLAGS := HOST_FPIE_FLAGS :=
else else
HOST_FPIE_FLAGS := -pie HOST_FPIE_FLAGS := -pie
# Force the correct entry point to workaround a bug in binutils that manifests with -pie
ifeq ($(HOST_CROSS_OS),windows)
HOST_CROSS_FPIE_FLAGS += -Wl,-e_mainCRTStartup
endif
endif endif
ifneq ($(HOST_CUSTOM_LD_COMMAND),true) ifneq ($(HOST_CUSTOM_LD_COMMAND),true)