Skip to content

Instantly share code, notes, and snippets.

@giraphics
Created December 1, 2019 04:04
Show Gist options
  • Save giraphics/f0573cfd41d90ba7ff8f55da4286df70 to your computer and use it in GitHub Desktop.
Save giraphics/f0573cfd41d90ba7ff8f55da4286df70 to your computer and use it in GitHub Desktop.
How to merge two “ar” static libraries into one?
######################################################################################################
# You can extract the object from both the .a files and create your .a file using the extracted .os: #
######################################################################################################
# Make a .tmp directory where we will extract our .o file later we delete this dir
mkdir .tmp
cd .tmp
ar -x ../libBMDGfx.a
ar -x ../Graphics/3rdParty/FontSupport/harfbuzz-master/build/libharfbuzz.a
ar -rc ../libGfx.a *.o
#ar -ds ../libGfx.a *.o
cd ..
rm -rf .tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment