That needed to be "-Wl,-R" instead of "-R". Duh.