mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-31 18:00:31 +08:00
linux.h (LIB_SPEC): If -pthread, add -lpthread even if -shared.
* config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if -shared. * config/alpha/linux-elf.h (LIB_SPEC): Likewise. * config/alpha/linux.h (LIB_SPEC): Likewise. * config/arm/linux-elf.h (LIB_SPEC): Likewise. * config/pa/pa-linux.h (LIB_SPEC): Likewise. * config/sparc/linux.h (LIB_SPEC): Likewise. * config/sparc/linux64.h (LIB_SPEC): Likewise. From-SVN: r59992
This commit is contained in:
parent
db8a1d4a56
commit
17772b2a16
@ -1,3 +1,14 @@
|
|||||||
|
2002-12-10 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* config/linux.h (LIB_SPEC): If -pthread, add -lpthread even if
|
||||||
|
-shared.
|
||||||
|
* config/alpha/linux-elf.h (LIB_SPEC): Likewise.
|
||||||
|
* config/alpha/linux.h (LIB_SPEC): Likewise.
|
||||||
|
* config/arm/linux-elf.h (LIB_SPEC): Likewise.
|
||||||
|
* config/pa/pa-linux.h (LIB_SPEC): Likewise.
|
||||||
|
* config/sparc/linux.h (LIB_SPEC): Likewise.
|
||||||
|
* config/sparc/linux64.h (LIB_SPEC): Likewise.
|
||||||
|
|
||||||
2002-12-09 Larin Hennessy <larin@science.oregonstate.edu>
|
2002-12-09 Larin Hennessy <larin@science.oregonstate.edu>
|
||||||
|
|
||||||
* doc/invoke.texi: Document UltraSparc III option.
|
* doc/invoke.texi: Document UltraSparc III option.
|
||||||
|
@ -45,5 +45,5 @@ Boston, MA 02111-1307, USA. */
|
|||||||
#ifndef USE_GNULIBC_1
|
#ifndef USE_GNULIBC_1
|
||||||
#undef LIB_SPEC
|
#undef LIB_SPEC
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared:-lc}%{!shared:%{pthread:-lpthread }%{profile:-lc_p}%{!profile:-lc}} "
|
"%{pthread:-lpthread }%{shared:-lc}%{!shared:%{profile:-lc_p}%{!profile:-lc}} "
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,9 +37,9 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
#undef LIB_SPEC
|
#undef LIB_SPEC
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared: -lc} \
|
"%{pthread:-lpthread} \
|
||||||
%{!shared: %{pthread:-lpthread} \
|
%{shared:-lc} \
|
||||||
%{profile:-lc_p} %{!profile: -lc}}"
|
%{!shared: %{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
/* Show that we need a GP when profiling. */
|
/* Show that we need a GP when profiling. */
|
||||||
#undef TARGET_PROFILING_NEEDS_GP
|
#undef TARGET_PROFILING_NEEDS_GP
|
||||||
|
@ -48,9 +48,9 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
/* Now we define the strings used to build the spec file. */
|
/* Now we define the strings used to build the spec file. */
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared: -lc} \
|
"%{pthread:-lpthread} \
|
||||||
%{!shared: %{pthread:-lpthread} \
|
%{shared:-lc} \
|
||||||
%{profile:-lc_p} %{!profile: -lc}}"
|
%{!shared:%{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
|
||||||
|
|
||||||
|
@ -93,9 +93,9 @@ Boston, MA 02111-1307, USA. */
|
|||||||
%{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
|
%{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
|
||||||
#else
|
#else
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared: -lc} \
|
"%{pthread:-lpthread} \
|
||||||
%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
|
%{shared:-lc} \
|
||||||
%{profile:-lc_p} %{!profile: -lc}}"
|
%{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
|
@ -71,9 +71,9 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
#undef LIB_SPEC
|
#undef LIB_SPEC
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared: -lgcc -lc} \
|
"%{pthread:-lpthread} \
|
||||||
%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
|
%{shared:-lgcc -lc} \
|
||||||
%{shared-libgcc: -lgcc} %{profile:-lc_p} %{!profile: -lc}}"
|
%{!shared:%{mieee-fp:-lieee} %{shared-libgcc:-lgcc} %{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
#undef ASM_SPEC
|
#undef ASM_SPEC
|
||||||
#define ASM_SPEC \
|
#define ASM_SPEC \
|
||||||
|
@ -123,9 +123,9 @@ Boston, MA 02111-1307, USA. */
|
|||||||
%{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
|
%{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}"
|
||||||
#else
|
#else
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared: -lc} \
|
"%{pthread:-lpthread} \
|
||||||
%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
|
%{shared:-lc} \
|
||||||
%{profile:-lc_p} %{!profile: -lc}}"
|
%{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
|
@ -124,9 +124,9 @@ Boston, MA 02111-1307, USA. */
|
|||||||
|
|
||||||
#undef LIB_SPEC
|
#undef LIB_SPEC
|
||||||
#define LIB_SPEC \
|
#define LIB_SPEC \
|
||||||
"%{shared: -lc} \
|
"%{pthread:-lpthread} \
|
||||||
%{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread} \
|
%{shared:-lc} \
|
||||||
%{profile:-lc_p} %{!profile: -lc}}"
|
%{!shared: %{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"
|
||||||
|
|
||||||
/* Provide a LINK_SPEC appropriate for GNU/Linux. Here we provide support
|
/* Provide a LINK_SPEC appropriate for GNU/Linux. Here we provide support
|
||||||
for the special GCC options -static and -shared, which allow us to
|
for the special GCC options -static and -shared, which allow us to
|
||||||
|
Loading…
Reference in New Issue
Block a user