This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[15/25] Specs cleanup: config/rs6000/sysv4.h SHARED_LIB_SUPPORT
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: geoffk at geoffk dot org, dje dot gcc at gmail dot com
- Date: Fri, 14 Jan 2011 00:12:45 +0000 (UTC)
- Subject: [15/25] Specs cleanup: config/rs6000/sysv4.h SHARED_LIB_SUPPORT
- References: <Pine.LNX.4.64.1101132358490.6059@digraph.polyomino.org.uk>
config/rs6000/sysv4.h has a conditional on SHARED_LIB_SUPPORT, which
is nowhere defined. Removing this allows a conditional definition of
LINK_SHLIB_SPEC to be removed, which this patch does. OK to commit?
2011-01-13 Joseph Myers <joseph@codesourcery.com>
* config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
(NO_SHARED_LIB_SUPPORT): Remove.
(LINK_SHLIB_SPEC): Remove one conditional definition.
diff -rupN --exclude=.svn gcc-mainline-14/gcc/config/rs6000/sysv4.h gcc-mainline/gcc/config/rs6000/sysv4.h
--- gcc-mainline-14/gcc/config/rs6000/sysv4.h 2010-12-20 13:12:12.000000000 -0800
+++ gcc-mainline/gcc/config/rs6000/sysv4.h 2011-01-12 14:36:47.000000000 -0800
@@ -642,21 +642,6 @@ extern int fixuplabelno;
%(link_target) \
%(link_os)"
-/* For now, turn off shared libraries by default. */
-#ifndef SHARED_LIB_SUPPORT
-#define NO_SHARED_LIB_SUPPORT
-#endif
-
-#ifndef NO_SHARED_LIB_SUPPORT
-/* Shared libraries are default. */
-#define LINK_SHLIB_SPEC "\
-%{!static: %(link_path) %{!R*:%{L*:-R %*}}} \
-%{mshlib: } \
-%{static:-dn -Bstatic} \
-%{shared:-G -dy -z text} \
-%{symbolic:-Bsymbolic -G -dy -z text}"
-
-#else
/* Shared libraries are not default. */
#define LINK_SHLIB_SPEC "\
%{mshlib: %(link_path) } \
@@ -664,7 +649,6 @@ extern int fixuplabelno;
%{static: } \
%{shared:-G -dy -z text %(link_path) } \
%{symbolic:-Bsymbolic -G -dy -z text %(link_path) }"
-#endif
/* Override the default target of the linker. */
#define LINK_TARGET_SPEC "\
--
Joseph S. Myers
joseph@codesourcery.com