How to build programs with gdc installed in /opt/gdc (using SCons)?

Ed eturpin at live.com
Thu Aug 23 17:54:22 PDT 2012


Nevermind, I think I figured it out. Looks like libgphobos2 
depends on libm, libpthread, and librt. So, changing the 
SConstruct file to:

DefaultEnvironment(DC='/opt/gdc/bin/gdmd')
Program('helloworld',
         'main.d',
         LIBPATH=['/opt/gdc/lib64','/usr/lib'],
         LIBS=['gphobos2','m','pthread','rt'])

Solves the problem. Though, if there's a better way to do things, 
feel free to let me know.


More information about the D.gnu mailing list