Difference between pic Vs pie

From the gcc documentation: -fpicGenerate position-independent code (PIC) suitable for use in a shared library… -fpieThese options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables….