that change and makes the correct one which is to simply remove the -Wl flag as cc can handle -R by itself.