New GDC binaries: 2.068.2, shared library support, multilib support & a new gdmd tool

Johannes Pfau via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Dec 26 07:15:14 PST 2016


Am Mon, 26 Dec 2016 16:26:55 +0200
schrieb Dicebot <public at dicebot.lv>:

> On 12/25/2016 09:41 PM, Johannes Pfau wrote:
> > Happy holidays everybody,
> > 
> > I'm happy to finally announce the release of new GDC binaries at
> > https://gdcproject.org/downloads . GDC is the GNU D Compiler, a D
> > compiler using GCC as the compiler backend.  
> 
> A lot of great stuff! Got few questions when trying to update Arch
> Linux package though, could you please advice?
> 
> 1) There is `gdc_include_dir` variable now, what is intended way to
> override it to custom path? `gcc/configure
> gdc_include_dir=/usr/include/dlang/gdc` doesn't seem to work

IIRC it's not really meant to be customizable. You'll have to edit
libphobos/m4/druntime.m4. To regenerate the configure script you'll
then have to call ./setup-gcc.sh first, cd into the
gcc-x.y.z/libphobos directory and execute:

export AUTOCONF=/opt/autoconf/2.64/bin/autoconf
export ACLOCAL=/usr/bin/aclocal-1.11           
export AUTOM4TE=/opt/autoconf/2.64/bin/autom4te
export AUTOMAKE=/usr/bin/automake-1.11
/opt/autoconf/2.64/bin/autoreconf 


> 
> 2) As far as I can see phobos is now built as shared library by
> default. What flags affect it? I'd like to build either static one,
> or both at the same time if possible.
> 

The default configuration should build static and shared libraries. The
flags to enable/disable library types are
[--enable|--disable]-[shared|static]
 

-- Johannes



More information about the Digitalmars-d-announce mailing list