D and FreeBSD
Anders F Björklund
afb at algonet.se
Wed Aug 30 08:21:59 PDT 2006
Jona Joachim wrote:
> When I saw that wxD 0.07 was released I decided to give it a try and
> ported it to FreeBSD. It wasn't really difficult.
> I built it using GDC exclusively as DMD is not available in the FreeBSD
> ports.
GDC is the preferred compiler for wxD, so that should be just fine.
> Do you think there are any concerns about building the sources with GDC
> instead of DMD? All test programs seamed to work fine. The only warning I
> got during the build process was:
>
> gdc: unrecognized option `-version=__WXGTK__'
It should have worked out of the box, using GNU Make ? ("gmake")
Anyway, -version is the wrong syntax for gdc - it uses -fversion
So you need to either modify the above, or use "gdmd" instead...
DMD uses DMC syntax, and GDC uses GCC syntax and they're different.
gdmd -version=__WXGTK__
gdc -fversion=__WXGTK__
Wonder why it didn't include the config. `uname` == "FreeBSD", yes ?
> Furthermore I'd like to know if the DMD license allows me to write a
> FreeBSD port of DMD which installs the Linux binary distribution and runs
> it under the FreeBSD Linux compatibility layer. The port would fetch the
> distfiles automatically from the Digital Mars FTP server and install them
> locally.
We did this for the Gentoo ebuild, as long as the distfile isn't
stored anywhere it should comply with the non-distribute license ?
But Walter would know for certain.
--anders
More information about the Digitalmars-d
mailing list