Cflags required for p2020

cancel
Showing results for 
Search instead for 
Did you mean: 

Cflags required for p2020

593 Views
raghavkumar
Contributor I

I am using powerpc-fsl-linux-gnuspe toolchain

What cflags and ldflags are required to compile an application for p2020

0 Kudos
1 Reply

93 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello raghav kumar,

CC="powerpc-fsl-linux-gnuspe-gcc  -m32 -mcpu=8548 -mabi=spe -mspe -mfloat-gprs=double --sysroot=$SDKTARGETSYSROOT"

 LD="powerpc-fsl-linux-gnuspe-ld  --sysroot=$SDKTARGETSYSROOT"

CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types"

LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos