To prepare a gluten-free version of this recipe, substitute the all-purpose flour with a 1:1 gluten-free baking flour that includes xanthan gum or a similar binder. Ensure that the cornstarch and all other ingredients (particularly the pecans and molasses) are labeled gluten-free to avoid cross-contamination.