When linking against libraries using the -l option (say -lfoo), gcc will prefer a shared object to a static library if both are found (will prefer
-l
-lfoo
You can specify the full path to the static libs without the -l flag to link with those.
gcc ... source.c ... /usr/lib32/libmysuperlib.a ...