NeXT Computers Forum Index NeXT Computers
www.NeXTComputers.org
 
Log in to check your private messagesLog in to check your private messages

Log inLog in  RegisterRegister


Profile  Search  Memberlist  FAQ  Usergroups
bug in specs.nextstep3 in egcs-1.1.2.x

 
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software
View previous topic :: View next topic  
Author Message
roytam1



Joined: 25 Aug 2008
Posts: 3

PostPosted: Wed Dec 04, 2013 6:22 am    Post subject: bug in specs.nextstep3 in egcs-1.1.2.x Reply with quote

I found that if -posix switch is used, linker will try to link both posixcrt0.o and crt0.o by a specs file mistake.

the following patch fix that.
Code:
--- specs.nextstep3.orig        2001-02-23 06:50:06.000000000 +0800
+++ specs.nextstep3     2013-12-04 21:21:38.503875000 +0800
@@ -24,11 +24,11 @@
 
 *libgcc:
 -lgcc
 
 *startfile:
-%{!posix*:%{static:%{pg:-lgcrt0.o}} %{!static:%{pg:-lgcrt0.o}} } %{!pg:      %{p:%e-p profiling is no longer supported.  Use -pg instead.}      %{!p:%{static:-lcrt0.o} %{!static:-lcrt0.o} }}     %{posix*:%{pg:-lgposixcrt0.o}%{!pg:      %{p:%e-p profiling is no longer supported.  Use -pg instead.}      %{!p:-lposixcrt0.o}}}
+%{!posix*:%{static:%{pg:-lgcrt0.o}} %{!static:%{pg:-lgcrt0.o}}  %{!pg:      %{p:%e-p profiling is no longer supported.  Use -pg instead.}      %{!p:%{static:-lcrt0.o} %{!static:-lcrt0.o} }} }    %{posix*:%{pg:-lgposixcrt0.o}%{!pg:      %{p:%e-p profiling is no longer supported.  Use -pg instead.}      %{!p:-lposixcrt0.o}}}
 
 *switches_need_spaces:
 
 
 *signed_char:
Back to top
View user's profile Send private message
t-rexky



Joined: 09 Jan 2011
Posts: 270
Location: Snowy Canada

PostPosted: Fri Dec 27, 2013 6:47 am    Post subject: Reply with quote

Good to see someone else fiddling with a compiler Smile!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeXT Computers Forum Index -> Porting New Software All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2017 phpBB Group