File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ def build_and_install_opendht():
68
68
"-DCMAKE_INSTALL_PREFIX=" + install_dir ,
69
69
"-DCMAKE_PREFIX_PATH=" + install_dir , # For finding restinio
70
70
"-DCMAKE_BUILD_TYPE=Release" ,
71
+ "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" ,
71
72
"-DBUILD_SHARED_LIBS=OFF" ,
72
73
"-DBUILD_TESTING=OFF" ,
73
74
"-DOPENDHT_PYTHON=OFF" ,
@@ -110,7 +111,8 @@ def build_and_install_pjproject():
110
111
"--disable-openh264" ,
111
112
"--disable-resample" ,
112
113
"--disable-libwebrtc" ,
113
- f"--with-gnutls={ install_dir } "
114
+ f"--with-gnutls={ install_dir } " ,
115
+ 'CFLAGS=-fPIC' ,
114
116
]
115
117
subprocess .run (configure_command , cwd = pjproject_dir , check = True )
116
118
subprocess .run (["make" ], cwd = pjproject_dir , check = True )
@@ -130,6 +132,7 @@ def build_and_install_msgpack():
130
132
"cmake" , ".." ,
131
133
"-DCMAKE_INSTALL_PREFIX=" + install_dir ,
132
134
"-DCMAKE_BUILD_TYPE=Release" ,
135
+ "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" ,
133
136
"-DMSGPACK_CXX17=ON" ,
134
137
"-DMSGPACK_USE_BOOST=OFF" ,
135
138
"-DMSGPACK_BUILD_EXAMPLES=OFF" ,
You can’t perform that action at this time.
0 commit comments