Skip to content

Commit fa54a4c

Browse files
authored
Merge pull request #76262 from andrurogerz/android-PIC
[android] build libxml2 and curl with -fPIC on Windows
2 parents 2eade1e + 7709bda commit fa54a4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,7 @@ function Build-XML2([Platform]$Platform, $Arch) {
15021502
BUILD_SHARED_LIBS = "NO";
15031503
CMAKE_INSTALL_BINDIR = "bin/$Platform/$ArchName";
15041504
CMAKE_INSTALL_LIBDIR = "lib/$Platform/$ArchName";
1505+
CMAKE_POSITION_INDEPENDENT_CODE = "YES";
15051506
CMAKE_SYSTEM_NAME = $Platform.ToString();
15061507
LIBXML2_WITH_ICONV = "NO";
15071508
LIBXML2_WITH_ICU = "NO";
@@ -1568,6 +1569,7 @@ function Build-CURL([Platform]$Platform, $Arch) {
15681569
BUILD_SHARED_LIBS = "NO";
15691570
BUILD_TESTING = "NO";
15701571
CMAKE_INSTALL_LIBDIR = "lib/$Platform/$ArchName";
1572+
CMAKE_POSITION_INDEPENDENT_CODE = "YES";
15711573
CMAKE_SYSTEM_NAME = $Platform.ToString();
15721574
BUILD_CURL_EXE = "NO";
15731575
BUILD_LIBCURL_DOCS = "NO";

0 commit comments

Comments
 (0)