diff --git a/gcc/config/pa/pa-hpux.h b/gcc/config/pa/pa-hpux.h index 33e2ac73838..1316f6ea0d2 100644 --- a/gcc/config/pa/pa-hpux.h +++ b/gcc/config/pa/pa-hpux.h @@ -44,4 +44,4 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define CPP_PREDEFINES "-Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE" #undef LINK_SPEC -#define LINK_SPEC "-u main -a archive" +#define LINK_SPEC "-u main %{static: -a archive}"