Commit 8b377b71 by Richard Stallman

(CPP_SPEC, LIB_SPEC, LINK_SPEC): Add -compat-bsd conditionals.

From-SVN: r3218
parent aa66bd06
...@@ -26,6 +26,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -26,6 +26,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define CPP_PREDEFINES \ #define CPP_PREDEFINES \
"-Dsun -Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc)" "-Dsun -Dsparc -Dunix -D__svr4__ -Asystem(unix) -Acpu(sparc) -Amachine(sparc)"
#undef CPP_SPEC
#define CPP_SPEC "\
%{compat-bsd:-iwithprefix ucbinclude -idirafter /usr/ucbinclude}\
%{msparclite:-D__sparclite__} %{mv8:-D__sparc_v8__}"
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas). /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
It's safe to pass -s always, even if -g is not used. */ It's safe to pass -s always, even if -g is not used. */
#undef ASM_SPEC #undef ASM_SPEC
...@@ -170,15 +175,21 @@ do { \ ...@@ -170,15 +175,21 @@ do { \
%{!traditional:/usr/ccs/lib/values-Xa.o%s}}}} \ %{!traditional:/usr/ccs/lib/values-Xa.o%s}}}} \
crtbegin.o%s" crtbegin.o%s"
/* ??? Note: in order for -compat-bsd to work fully,
we must somehow arrange to fixincludes /usr/ucbinclude
and put the result in $(libsubdir)/ucbinclude. */
#undef LIB_SPEC #undef LIB_SPEC
#define LIB_SPEC \ #define LIB_SPEC \
"%{!shared:%{!symbolic:-lc}} \ "%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} \
%{!shared:%{!symbolic:-lc}} \
crtend.o%s \ crtend.o%s \
%{!shared:%{!symbolic:%{pg:crtn.o%s}%{!pg:crtn.o%s}}}" %{!shared:%{!symbolic:%{pg:crtn.o%s}%{!pg:crtn.o%s}}}"
/* This should be the same as in svr4.h, except with -R added. */ /* This should be the same as in svr4.h, except with -R added. */
#undef LINK_SPEC #undef LINK_SPEC
#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} \
%{shared:-G -dy} \ %{shared:-G -dy} \
...@@ -186,8 +197,13 @@ do { \ ...@@ -186,8 +197,13 @@ do { \
%{G:-G} \ %{G:-G} \
%{YP,*} \ %{YP,*} \
%{R*} \ %{R*} \
%{compat-bsd: \
%{!YP,*:%{p:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{!p:-Y P,/usr/ucblib:/usr/ccs/lib:/usr/lib}} \
-R /usr/ucblib} \
%{!compat-bsd: \
%{!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}"
/* This defines which switch letters take arguments. /* This defines which switch letters take arguments.
......
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