www.digitalmars.com         C & C++   DMDScript  

D.gnu - Fixed it, but I have a question about ./configure of GDC

reply FreekSh0w86 <perfectcell14 yahoo.com> writes:
Is it possible to pass -fversion=Psp at ./configure time instead of 
having to manually edit libphobos's Makefile? I've made "patches" to my 
copy of std.* (phobos) that involve version(Psp) but it requires a 
complete rebuild of the library with -fversion=Psp defined. Is there a 
way to automatically put that in configure so I can give people simpler 
instructions (instead of digging through folders looking for the Makefile)?
Jul 27 2008
parent reply "Koroskin Denis" <2korden gmail.com> writes:
On Mon, 28 Jul 2008 06:46:09 +0400, FreekSh0w86 <perfectcell14 yahoo.com>  
wrote:

 Is it possible to pass -fversion=Psp at ./configure time instead of  
 having to manually edit libphobos's Makefile? I've made "patches" to my  
 copy of std.* (phobos) that involve version(Psp) but it requires a  
 complete rebuild of the library with -fversion=Psp defined. Is there a  
 way to automatically put that in configure so I can give people simpler  
 instructions (instead of digging through folders looking for the  
 Makefile)?

I think there needs to be a patch to GDC that will automatically predefine version=Psp on this platform in the same way as version=linux is defined on linux and version=windows defined on windows.
Jul 28 2008
parent Vince <toto toto.fr> writes:
Koroskin Denis a écrit :
 On Mon, 28 Jul 2008 06:46:09 +0400, FreekSh0w86 
 <perfectcell14 yahoo.com> wrote:
 
 Is it possible to pass -fversion=Psp at ./configure time instead of 
 having to manually edit libphobos's Makefile? I've made "patches" to 
 my copy of std.* (phobos) that involve version(Psp) but it requires a 
 complete rebuild of the library with -fversion=Psp defined. Is there a 
 way to automatically put that in configure so I can give people 
 simpler instructions (instead of digging through folders looking for 
 the Makefile)?

I think there needs to be a patch to GDC that will automatically predefine version=Psp on this platform in the same way as version=linux is defined on linux and version=windows defined on windows.

case "$d_target_os" in psp*) d_os_versym=psp ; d_unix=1 ;; ... I think you could then write Version(psp) { }
Jul 29 2008