Commit f905fc0d by Doug Evans

svr4.h (MD_EXEC_PREFIX): Don't use if cross compiling.

	* svr4.h (MD_EXEC_PREFIX): Don't use if cross compiling.
	(MD_STARTFILE_PREFIX): Likewise.
	(LINK_SPEC): Don't use absolute path names if cross compiling.

From-SVN: r10632
parent 6f5541c7
...@@ -113,14 +113,18 @@ Boston, MA 02111-1307, USA. ...@@ -113,14 +113,18 @@ Boston, MA 02111-1307, USA.
/* Under svr4, the normal location of the `ld' and `as' programs is the /* Under svr4, the normal location of the `ld' and `as' programs is the
/usr/ccs/bin directory. */ /usr/ccs/bin directory. */
#ifndef CROSS_COMPILE
#undef MD_EXEC_PREFIX #undef MD_EXEC_PREFIX
#define MD_EXEC_PREFIX "/usr/ccs/bin/" #define MD_EXEC_PREFIX "/usr/ccs/bin/"
#endif
/* Under svr4, the normal location of the various *crt*.o files is the /* Under svr4, the normal location of the various *crt*.o files is the
/usr/ccs/lib directory. */ /usr/ccs/lib directory. */
#ifndef CROSS_COMPILE
#undef MD_STARTFILE_PREFIX #undef MD_STARTFILE_PREFIX
#define MD_STARTFILE_PREFIX "/usr/ccs/lib/" #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
#endif
/* Provide a LIB_SPEC appropriate for svr4. Here we tack on the default /* Provide a LIB_SPEC appropriate for svr4. Here we tack on the default
standard C library (unless we are building a shared library). */ standard C library (unless we are building a shared library). */
...@@ -167,6 +171,16 @@ Boston, MA 02111-1307, USA. ...@@ -167,6 +171,16 @@ Boston, MA 02111-1307, USA.
not being done. */ not being done. */
#undef LINK_SPEC #undef LINK_SPEC
#ifdef CROSS_COMPILE
#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
%{b} %{Wl,*:%*} \
%{static:-dn -Bstatic} \
%{shared:-G -dy -z text %{!h*:%{o*:-h %*}}} \
%{symbolic:-Bsymbolic -G -dy -z text %{!h*:%{o*:-h %*}}} \
%{G:-G} \
%{YP,*} \
%{Qy:} %{!Qn:-Qy}"
#else
#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \ #define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
%{b} %{Wl,*:%*} \ %{b} %{Wl,*:%*} \
%{static:-dn -Bstatic} \ %{static:-dn -Bstatic} \
...@@ -177,6 +191,7 @@ Boston, MA 02111-1307, USA. ...@@ -177,6 +191,7 @@ Boston, MA 02111-1307, USA.
%{!YP,*:%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \ %{!YP,*:%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{!p:-Y P,/usr/ccs/lib:/usr/lib}} \ %{!p:-Y P,/usr/ccs/lib:/usr/lib}} \
%{Qy:} %{!Qn:-Qy}" %{Qy:} %{!Qn:-Qy}"
#endif
/* Gcc automatically adds in one of the files /usr/ccs/lib/values-Xc.o, /* Gcc automatically adds in one of the files /usr/ccs/lib/values-Xc.o,
/usr/ccs/lib/values-Xa.o, or /usr/ccs/lib/values-Xt.o for each final /usr/ccs/lib/values-Xa.o, or /usr/ccs/lib/values-Xt.o for each final
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment