X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Fconfig%2Fpa%2Fpa64-hpux.h;h=bad5b41c2e3d3c572d3be92e94261c325895452d;hp=ef1122d6b3baffef3052ab3a8d783fdf3fcfa568;hb=544e9d053076e9b2b985e4a3f8b43e43fa49f0f6;hpb=d87f6c047d1232827476d42bfffc823085eba2c4 diff --git a/gcc/config/pa/pa64-hpux.h b/gcc/config/pa/pa64-hpux.h index ef1122d6b3b..bad5b41c2e3 100644 --- a/gcc/config/pa/pa64-hpux.h +++ b/gcc/config/pa/pa64-hpux.h @@ -57,25 +57,35 @@ along with GCC; see the file COPYING3. If not see #if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GNU_LD) #define LIB_SPEC \ "%{!shared:\ - %{!p:%{!pg: %{static|mt|pthread:-lpthread} -lc\ + %{!p:%{!pg:%{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\ + %{static:-a archive}} -lpthread} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{p:%{!pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\ - -lprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\ + -lprof %{static:-a archive}\ + %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\ + %{static:-a archive}} -lpthread} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\ - -lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\ + -lgprof %{static:-a archive}\ + %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\ + %{static:-a archive}} -lpthread} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{shared:%{mt|pthread:-lpthread}}" #else #define LIB_SPEC \ "%{!shared:\ - %{!p:%{!pg: %{static|mt|pthread:-lpthread} -lc\ + %{!p:%{!pg:%{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\ + %{static:-a archive}} -lpthread} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{p:%{!pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\ - -lprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\ + -lprof %{static:-a archive}\ + %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\ + %{static:-a archive}} -lpthread} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\ - -lgprof %{static:-a archive} %{static|mt|pthread:-lpthread} -lc\ + -lgprof %{static:-a archive}\ + %{static|mt|pthread:%{fopenmp:%{static:-a shared} -lrt\ + %{static:-a archive}} -lpthread} -lc\ %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\ %{shared:%{mt|pthread:-lpthread}}" #endif