File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,28 @@ index 2d379feb4b..3eb8dbe9ea 100755
208
208
EOF
209
209
fi
210
210
211
+ # Configure nerfs RUNSHARED when cross-compiling, which prevents i386 PGO from
212
+ # running from an x86_64 environment. Undo that, as we can run i386 from x86_64.
213
+ if [[ " ${BUILD_TRIPLE} " != " ${TARGET_TRIPLE} " && " ${TARGET_TRIPLE} " = " i686-unknown-linux-gnu" ]]; then
214
+ patch -p1 << "EOF "
215
+ diff --git a/configure b/configure
216
+ index 1252335472..33c11fbade 100755
217
+ --- a/configure
218
+ +++ b/configure
219
+ @@ -5989,10 +5989,6 @@ else # shared is disabled
220
+ esac
221
+ fi
222
+
223
+ -if test "$cross_compiling" = yes; then
224
+ - RUNSHARED=
225
+ -fi
226
+ -
227
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
228
+ $as_echo "$LDLIBRARY" >&6; }
229
+
230
+ EOF
231
+ fi
232
+
211
233
# Add a make target to write the PYTHON_FOR_BUILD variable so we can
212
234
# invoke the host Python on our own.
213
235
patch -p1 << "EOF "
You can’t perform that action at this time.
0 commit comments