Glue is easiest. Dont need much and only at the end.
Alternate idea ...
Get it back in place properly, then clamp it but leave enough room to run a 1/16 drill bit near exposed end.
Then tap a finish nail in and that might hold as well . This is reversible as well, whereas the glue might not be as easy - if that matters to you