Wednesday, November 2, 2011

LDC under ubuntu 11.10 one more try

Installed through apt llvm-2.9, downloaded trunk LDC, executed ccmake, and added -ldl to LIBCONFIG_LDFLAGS. Successfully built!

Build tango, and adjusted /usr/local/etc/ldc.conf:

// This configuration file uses libconfig.
// See http://www.hyperrealm.com/libconfig/ for syntax details.

// Special macros:
// %%ldcbinarypath%%
//  - is replaced with the path to the directory holding the ldc executable

// The default group is required
default:
{
    // 'switches' holds array of string that are appends to the command line
    // arguments before they are parsed.
    switches = [
        "-I/usr/local/include/d",
        "-I/usr/local/include/d/tango/core/vendor",
        "-L-L/usr/local/lib",
        "-L-ltango-ldc",
        "-d-version=Tango",
        "-defaultlib=tango-ldc",
        "-debuglib=tango-ldc"
    ];
};

No comments: