mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
Fix library overwriting ; proper assembler flags
This commit is contained in:
parent
2d11e7ccd4
commit
5e0b073eff
28
makefile
28
makefile
@ -666,7 +666,7 @@ ifeq ($(platform),wp8)
|
|||||||
as = "$$(cygpath -u "$(WP80_SDK)\bin\x86_arm\armasm.exe")"
|
as = "$$(cygpath -u "$(WP80_SDK)\bin\x86_arm\armasm.exe")"
|
||||||
cxx = "$$(cygpath -u "$(WP80_SDK)\bin\x86_arm\cl.exe")"
|
cxx = "$$(cygpath -u "$(WP80_SDK)\bin\x86_arm\cl.exe")"
|
||||||
ld = "$$(cygpath -u "$(WP80_SDK)\bin\x86_arm\link.exe")"
|
ld = "$$(cygpath -u "$(WP80_SDK)\bin\x86_arm\link.exe")"
|
||||||
asmflags = -machine ARM -32
|
asmflags = $(target-cflags) -machine ARM -32
|
||||||
asm-output = -o $(1)
|
asm-output = -o $(1)
|
||||||
asm-input = $(1)
|
asm-input = $(1)
|
||||||
machine_type = ARM
|
machine_type = ARM
|
||||||
@ -678,6 +678,7 @@ ifeq ($(platform),wp8)
|
|||||||
vc_arch =
|
vc_arch =
|
||||||
w8kit_arch = x86
|
w8kit_arch = x86
|
||||||
deps_arch = x86
|
deps_arch = x86
|
||||||
|
asmflags = $(target-cflags) -safeseh
|
||||||
as = "$$(cygpath -u "$(WP80_SDK)\bin\ml.exe")"
|
as = "$$(cygpath -u "$(WP80_SDK)\bin\ml.exe")"
|
||||||
cxx = "$$(cygpath -u "$(WP80_SDK)\bin\cl.exe")"
|
cxx = "$$(cygpath -u "$(WP80_SDK)\bin\cl.exe")"
|
||||||
ld = "$$(cygpath -u "$(WP80_SDK)\bin\link.exe")"
|
ld = "$$(cygpath -u "$(WP80_SDK)\bin\link.exe")"
|
||||||
@ -705,12 +706,31 @@ ifeq ($(platform),wp8)
|
|||||||
|
|
||||||
common-lflags = $(classpath-lflags)
|
common-lflags = $(classpath-lflags)
|
||||||
|
|
||||||
|
ifeq ($(mode),debug)
|
||||||
|
build-type = Debug
|
||||||
|
endif
|
||||||
|
ifeq ($(mode),debug-fast)
|
||||||
|
build-type = Debug
|
||||||
|
endif
|
||||||
|
ifeq ($(mode),stress_major)
|
||||||
|
build-type = Release
|
||||||
|
endif
|
||||||
|
ifeq ($(mode),fast)
|
||||||
|
build-type = Release
|
||||||
|
endif
|
||||||
|
ifeq ($(mode),fast)
|
||||||
|
build-type = Release
|
||||||
|
endif
|
||||||
|
ifeq ($(mode),small)
|
||||||
|
build-type = Release
|
||||||
|
endif
|
||||||
|
|
||||||
arflags = -MACHINE:$(machine_type)
|
arflags = -MACHINE:$(machine_type)
|
||||||
lflags = $(common-lflags) -nologo \
|
lflags = $(common-lflags) -nologo \
|
||||||
-MACHINE:$(machine_type) \
|
-MACHINE:$(machine_type) \
|
||||||
-LIBPATH:"$(WP80_KIT)\lib\$(w8kit_arch)" -LIBPATH:"$(WIN8_KIT)\Lib\win8\um\$(w8kit_arch)" -LIBPATH:"$(MSVC_ROOT)\lib$(vc_arch)" \
|
-LIBPATH:"$(WP80_KIT)\lib\$(w8kit_arch)" -LIBPATH:"$(WIN8_KIT)\Lib\win8\um\$(w8kit_arch)" -LIBPATH:"$(MSVC_ROOT)\lib$(vc_arch)" \
|
||||||
ws2_32.lib \
|
ws2_32.lib \
|
||||||
"$(shell $(windows-path) "$(wp8)\lib\$(deps_arch)\zlib.lib")" "$(shell $(windows-path) "$(wp8)\lib\$(deps_arch)\ThreadEmulation.lib")"
|
"$(shell $(windows-path) "$(wp8)\lib\$(deps_arch)\$(build-type)\zlib.lib")" "$(shell $(windows-path) "$(wp8)\lib\$(deps_arch)\$(build-type)\ThreadEmulation.lib")"
|
||||||
|
|
||||||
cc = $(cxx)
|
cc = $(cxx)
|
||||||
asm-format = masm
|
asm-format = masm
|
||||||
@ -1508,8 +1528,8 @@ $(dynamic-library): $(vm-objects) $(dynamic-object) $(classpath-objects) \
|
|||||||
$(lzma-decode-objects)
|
$(lzma-decode-objects)
|
||||||
@echo "linking $(@)"
|
@echo "linking $(@)"
|
||||||
ifdef ms_cl_compiler
|
ifdef ms_cl_compiler
|
||||||
$(ld) $(shared) $(lflags) $(^) -out:$(@) -PDB:$(@).pdb \
|
$(ld) $(shared) $(lflags) $(^) -out:$(@) -PDB:$(subst .dll,.pdb,$(@)) \
|
||||||
-IMPLIB:$(build)/$(name).lib $(manifest-flags)
|
-IMPLIB:$(subst .dll,.lib,$(@)) $(manifest-flags)
|
||||||
ifdef mt
|
ifdef mt
|
||||||
$(mt) -nologo -manifest $(@).manifest -outputresource:"$(@);2"
|
$(mt) -nologo -manifest $(@).manifest -outputresource:"$(@);2"
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user