You can glue drywall to brick using construction glue or mud. Ensure the brick substrate is clean and has no debris on it. Apply the glue or mud to the back of the drywall and apply it on the brick. Only do this if you have a straight and consistent brick wall – you may run into issues otherwise.