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

Vince toto at toto.fr
Tue Jul 29 00:47:17 PDT 2008


Koroskin Denis a écrit :
> On Mon, 28 Jul 2008 06:46:09 +0400, FreekSh0w86 
> <perfectcell14 at 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.
In target-ver-syms.sh  you should add a PSP target :

case "$d_target_os" in
psp*) d_os_versym=psp ; d_unix=1 ;;
...


I think you could then write

Version(psp)
{

}




More information about the D.gnu mailing list