Index » GDC » GDC and FreeBSD (page 2)

June 07, 2005
In article <d83qvu$22ve$1@digitaldaemon.com>, =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= says...
>
>U.Baumanis wrote:
>  I will play with it in evening again! :-)
>> 
>> May be gdc don't look in include/d/3.4.5/
>> because default gcc is 3.4.2?
>> 
>> Do I have to force it with -V 3.4.5 ?
>
>Nah, the GCC version under include/d is the
>version of GCC that you patched with GDC
>in order to build your "gdc" binary ?
>
>It doesn't have anything to do with the
>system/default GCC version, really...
>
>--anders

Ok, then option is to use gdc with -I flag?
Or can I set an include path in some config file for gdc?

--
ub


June 09, 2005
U.Baumanis wrote:

> Ok, then option is to use gdc with -I flag?
> Or can I set an include path in some config file for gdc?

I would just set it in the Makefile, but you can add it
to the DFLAGS environment variable (for "gdmd") too...

Or better yet, install Phobos in the advised location ? :-)
You can still keep your own import modules in some odd place.

--anders
July 23, 2005
In article <d83t0k$24rc$1@digitaldaemon.com>, U.Baumanis says...
>
>Ok, then option is to use gdc with -I flag?
>Or can I set an include path in some config file for gdc?

Hi!  I played around with this and got it working; it requires tweaking the ports Makefile, and also modifying a file in the work directory.

So, first edit the /usr/ports/lang/gdc/Makefile, and set:

# Add -gdc so libstdc++-v3 will install in correct place
# Also, see version_string in gcc/version.c
__GCC_VERSION=3.4.5-gdc


Next, change the do-install target:

do-install:
@cd ${WRKSRC} && ${GMAKE} install

(Make sure that's a TAB, not 8 spaces, before the '@'.)


Now, run 'make patch', and then edit the work/*/gcc/version.c file, and set version_string="3.4.5-gdc ...".


Now, the full install can be done without conflicting with any other gcc port, and you'll no longer need to pass the -I flags to get gdc to find phobos.


I've sent this to the port maintainer, and he seemed keen to fix the port.  Hopefully when he upgrades to 0.15 he'll be able to fix this as well.

Regards,

Tim


Next ›   Last »
1 2
Top | Discussion index | About this forum | D home