]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 28 Feb 2004 23:32:07 +0000 (23:32 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 28 Feb 2004 23:32:07 +0000 (23:32 +0000)
From-SVN: r78637

gcc/ChangeLog
gcc/config/pa/pa64-hpux.h

index 3392469efa9ebd7ef12b69c7107968e5c4182dcc..33d563b0220ac4db6505a62ef05973154c99e3c3 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
+
 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
 
        PR optimization/7871
index 44eb11b9b83ece6fd47ac4774aafcf18cbbf0bf4..8417e297270d9f5288660f7c76962f8aeb080315 100644 (file)
@@ -43,14 +43,20 @@ Boston, MA 02111-1307, USA.  */
   "%{!mgnu-ld:+Accept TypeMismatch} -E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:%{mgnu-ld:-shared}%{!mgnu-ld:-b}}"
 #endif
 
-/* Like the default, except no -lg.  */
+/* Profiling support is only provided in libc.a.  However, libprof and
+   libgprof are only available in shared form on HP-UX 11.00.  We use
+   the shared form if we are using the GNU linker or an archive form
+   isn't available.  We also usually need to link with libdld and it's
+   only available in shared form.  */
 #undef LIB_SPEC
 #define LIB_SPEC \
   "%{!shared:\
      %{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
-     %{pg: -L/usr/lib/pa20_64/libp/ -lgprof -lc\
-       %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}\
-     %{p: -L/usr/lib/pa20_64/libp/ -lprof -lc\
+     %{p:%{!pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
+          -lprof %{static:-a archive} -lc\
+          %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
+     %{pg:%{static:%{mgnu-ld:-a shared}%{!mgnu-ld:-a archive_shared}}\
+       -lgprof %{static:-a archive} -lc\
        %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
    /usr/lib/pa20_64/milli.a"