Statically linking against glib2 or bundling it with your app has license implications
A quick Google suggests statically linking might be challenging, so Id go with the bundling option. You can have a look at how e.g. GIMP or Gedit do it