I am trying to cross-compile a C/C++ application using Petalinux SDK. I am seeing the following error.
aarch64-xilinx-linux-ld: unrecognized option '-Wl,-O1'
As you can see below the linker options being complained about are part of the environment setup file in the SDK that is sourced before cross compiling.
![embeddeddan_0-1697659297572.png embeddeddan_0-1697659297572.png](/t5/image/serverpage/image-id/97240iE9A8799FF0C31811/image-size/medium?v=v2&px=400)
I will continue to try and track a solution down but wanted to reach out to the community in parallel to see if anyone could assist.
Thanks,
Dan