Skip to content

Instantly share code, notes, and snippets.

@Oleksiy-Yakovenko
Created December 6, 2016 09:51
Show Gist options
  • Save Oleksiy-Yakovenko/c03d81767c015ed7f14607c54ebff58f to your computer and use it in GitHub Desktop.
Save Oleksiy-Yakovenko/c03d81767c015ed7f14607c54ebff58f to your computer and use it in GitHub Desktop.
How to patch libsupc++.a to link against older glibc
ar x libsupc++.a
for i in *.o ; do mv $i new_$i ; objcopy new_$i $i --redefine-sym memcpy=memcpy@GLIBC_2.2.5 ; rm new_$i ; done
ar rcs libsupc++.a *.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment