Skip to content

Commit e74dd99

Browse files
committed
build.ps1: workaround Android builds
This works around the fact that CMake does not realise that we are building a target which uses ELF files and can use `chrpath` to rewrite the RPATH.
1 parent b8062e5 commit e74dd99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils/build.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,12 @@ function Build-CMakeProject {
15821582
Add-FlagsDefine $Defines CMAKE_SHARED_LINKER_FLAGS "--ld-path=$ld"
15831583
Add-FlagsDefine $Defines CMAKE_EXE_LINKER_FLAGS "--ld-path=$ld"
15841584
}
1585+
1586+
# TODO(compnerd) we should understand why CMake does not understand
1587+
# that the object file format is ELF when targeting Android on Windows.
1588+
# This indication allows it to understand that it can use `chrpath` to
1589+
# change the RPATH on the dynamic libraries.
1590+
Add-FlagsDefine $Defines CMAKE_EXECUTABLE_FORMAT "ELF"
15851591
}
15861592
}
15871593

0 commit comments

Comments
 (0)