Skip to content

Commit 1111ba9

Browse files
committed
Test fix
1 parent e8967a3 commit 1111ba9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

relenv/buildenv.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,27 @@ def buildenv(
7979
"CXX": f"{toolchain}/bin/{triplet}-g++",
8080
"CFLAGS": (
8181
f"--sysroot={sysroot} "
82+
f"-fPIC "
8283
f"-I{relenv_path}/include "
8384
f"-I{sysroot}/usr/include"
8485
),
8586
"CXXFLAGS": (
8687
f"--sysroot={sysroot} "
88+
f"-fPIC "
8789
f"-I{relenv_path}/include "
8890
f"-I{sysroot}/usr/include "
8991
f"-L{relenv_path}/lib -L{sysroot}/lib "
9092
f"-Wl,-rpath,{relenv_path}/lib"
9193
),
9294
"CPPFLAGS": (
9395
f"--sysroot={sysroot} "
96+
f"-fPIC "
9497
f"-I{relenv_path}/include "
9598
f"-I{sysroot}/usr/include"
9699
),
97100
"CMAKE_CFLAGS": (
98101
f"--sysroot={sysroot} "
102+
f"-fPIC "
99103
f"-I{relenv_path}/include "
100104
f"-I{sysroot}/usr/include"
101105
),
@@ -105,6 +109,10 @@ def buildenv(
105109
f"-Wl,-rpath,{relenv_path}/lib"
106110
),
107111
"CRATE_CC_NO_DEFAULTS": "1",
112+
"OPENSSL_DIR": f"{relenv_path}",
113+
"OPENSSL_INCLUDE_DIR": f"{relenv_path}/include",
114+
"OPENSSL_LIB_DIR": f"{relenv_path}/lib",
115+
"PKG_CONFIG_PATH": f"{relenv_path}/lib/pkgconfig",
108116
}
109117
if sys.platform == "dawin":
110118
env["MACOS_DEVELOPMENT_TARGET"] = MACOS_DEVELOPMENT_TARGET

0 commit comments

Comments
 (0)