🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #2298

Regarding syntax for the specs file

#2298
From: Stefan 'Stetson' Skoglund
Date: Mon, 20 May 1996 00:00
69 lines
3326 bytes
I put in the shared version of libg++.
Ok, every time i try to link with libg++ i need
to add -R option when compiling.

How can I modify the specs file so that a -R will only
be added when linking with libg++.so ??

As it is now i did it such that the -R option will
always be added if not doing any profiling.

My system is sunos5.4 or solaris 2.4. Sun SparcStations.
Here comes my specs -file.
-----
*asm:
%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s    %{fpic:-K PIC} %{fPIC:-K PIC}

*asm_final:
%{pipe:-}

*cpp:
   %{compat-bsd:-iwithprefixbefore ucbinclude -I/usr/ucbinclude}   %{msparclite:-D__sparclite__} %{mv8:-D__sparc_v8__}   %{msupersparc:-D__supersparc__ -D__sparc_v8__}

*cc1:
%{sun4:} %{target:}

*cc1plus:

*endfile:
crtend.o%s crtn.o%s

*link:
%{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,*}    %{R*}    %{compat-bsd:      %{!YP,*:%{p:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib}        %{pg:-Y P,/usr/ucblib:/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib}        %{!p:%{!pg:-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}        %{pg:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib}        %{!p:%{!pg:-R/pub/sun/lib -Y P,/usr/ccs/lib:/usr/lib}}}}    %{Qy:} %{!Qn:-Qy}

*lib:
%{compat-bsd:-lucb -lsocket -lnsl -lelf -laio} %{!shared:%{!symbolic:-lc}}

*libgcc:
%{!shared:%{!symbolic:-lgcc}}

*startfile:
%{!shared: 			 %{!symbolic: 			  %{p:mcrt1.o%s}%{!p:crt1.o%s} %{pg:gmon.o%s}}} 			crti.o%s 			%{ansi:values-Xc.o%s} 			%{!ansi: 			 %{traditional:values-Xt.o%s} 			 %{!traditional:values-Xa.o%s}} 			crtbegin.o%s

*switches_need_spaces:


*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}

*predefines:
-Dsun -Dsparc -Dunix -D__svr4__ -D__SVR4   -Asystem(unix) -Asystem(svr4) -Acpu(sparc) -Amachine(sparc)  -D__GCC_NEW_VARARGS__

*cross_compile:
0

*multilib:
. ;

-----
-- 
---------------------------------------------------------------------
Stefan 'Stetson' Skoglund          I               |
sp2stes1@ida.his.se                I               |
<http://www.his.se/ida/~sp2stes1/> I         _____/0\_____
                                   I ____________O(.)O___________
H\"ogskolan i Sk\"ovde, Sverige    I      I-+-I    O    I-+-I
                                   I
                                   I      Viggen with two Rb04
---------------------------------------------------------------------
Technical Details
Message-ID: <y9yrasfcogh.fsf@ernst.ida.his.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,37855c19491581cb,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1025b4,37855c19491581cb,start
X-Google-Attributes: gid1025b4,public
From: Stefan 'Stetson' Skoglund <sp2stes1@ida.his.se>
Subject: Regarding syntax for the specs file
Date: 1996/05/20
Message-ID: <y9yrasfcogh.fsf@ernst.ida.his.se>
X-Deja-AN: 155923280
sender: sp2stes1@ernst.ida.his.se
organization: University of Skoevde, Skoevde Sweden
reply-to: Stefan 'Stetson' Skoglund <sp2stes1@ida.his.se>
newsgroups: gnu.misc.discuss,gnu.gcc.help