File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -103,3 +103,9 @@ LC_ALL=C "${MY_DIR}/update-system-packages.sh"
103103
104104# wrap compilers (see https://github.com/pypa/manylinux/issues/1725)
105105" ${MY_DIR} /install-gcc-wrapper.sh"
106+
107+ # patch libstdc++.so (see https://github.com/pypa/manylinux/issues/1760)
108+ if [ " ${AUDITWHEEL_POLICY} " == " manylinux_2_28" ]; then
109+ LIBSTDCXX=$( find " ${DEVTOOLSET_ROOTPATH} " -name ' libstdc++.so' )
110+ sed -i ' s/INPUT\s*(\s*\([^ ]\+\)\s*\([^ ]\+\)\s*)/INPUT ( \1 \2 \1 )/g' " ${LIBSTDCXX} "
111+ fi
Original file line number Diff line number Diff line change @@ -172,5 +172,19 @@ if [ "${AUDITWHEEL_ARCH}" == "x86_64" ]; then
172172 fi
173173fi
174174
175+ # https://github.com/pypa/manylinux/issues/1760
176+ g++ -o /tmp/repro -x c++ -D_GLIBCXX_ASSERTIONS -fPIC -Wl,--as-needed - << EOF
177+ #include <array>
178+ #include <cstdio>
179+
180+ int main(int argc, char* argv[])
181+ {
182+ std::array<int, 3> a = {1, 2, 3};
183+ printf("repro %d\n", a[0]);
184+ return 0;
185+ }
186+ EOF
187+ /tmp/repro
188+
175189# final report
176190echo " run_tests successful!"
You can’t perform that action at this time.
0 commit comments