Thread overview
Fixed it, but I have a question about ./configure of GDC
Jul 28, 2008
FreekSh0w86
Jul 29, 2008
Koroskin Denis
Jul 29, 2008
Vince
July 28, 2008
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)?
July 29, 2008
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.
July 29, 2008
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.
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)
{

}