From 03be9d6b71c5e5f533e5d231a88230637fc69178 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Fri, 19 May 2006 00:12:01 +0000 Subject: [PATCH] t-hpux-shlib (SHLIB_LINK): Remove `-lc'. * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'. * pa/pa-hpux11.h (LIB_SPEC): Update comment. From-SVN: r113894 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa-hpux11.h | 5 ++++- gcc/config/pa/t-hpux-shlib | 3 +-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e805a395fb0..9bb93683dad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-05-18 John David Anglin + + * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'. + * pa/pa-hpux11.h (LIB_SPEC): Update comment. + 2006-05-18 Mike Stump Fix up vla, vm and [*] sematics. diff --git a/gcc/config/pa/pa-hpux11.h b/gcc/config/pa/pa-hpux11.h index ad16bb41e3f..819dea157a4 100644 --- a/gcc/config/pa/pa-hpux11.h +++ b/gcc/config/pa/pa-hpux11.h @@ -129,7 +129,10 @@ Boston, MA 02110-1301, USA. */ %{static:-a archive} %{shared:-b}" #endif -/* hpux 11 has posix threads. */ +/* HP-UX 11 has posix threads. HP libc contains pthread stubs so that + non-threaded applications can be linked with a thread-safe libc + without a subsequent loss of performance. For more details, see + . */ #undef LIB_SPEC #define LIB_SPEC \ "%{!shared:\ diff --git a/gcc/config/pa/t-hpux-shlib b/gcc/config/pa/t-hpux-shlib index 4bb9d676e7a..d609d3f8624 100644 --- a/gcc/config/pa/t-hpux-shlib +++ b/gcc/config/pa/t-hpux-shlib @@ -8,8 +8,7 @@ SHLIB_DIR = @multilib_dir@ SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@ SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \ - -o $(SHLIB_DIR)/$(SHLIB_NAME).tmp @multilib_flags@ \ - $(SHLIB_OBJS) -lc && \ + -o $(SHLIB_DIR)/$(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) && \ rm -f $(SHLIB_DIR)/$(SHLIB_SONAME) && \ if [ -f $(SHLIB_DIR)/$(SHLIB_NAME) ]; then \ mv -f $(SHLIB_DIR)/$(SHLIB_NAME) $(SHLIB_DIR)/$(SHLIB_NAME).backup; \