Mercurial > projects > ldc
comparison runtime/CMakeLists.txt @ 1061:616d7c90bb6a
Update runtime CMakeList.txt for new command line syntax regarding PIC
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 08 Mar 2009 09:58:26 +0100 |
parents | 4c0df37d0421 |
children | bb57632d27ea |
comparison
equal
deleted
inserted
replaced
1060:599e3d6d0dbd | 1061:616d7c90bb6a |
---|---|
11 option(BUILD_BC_LIBS "build the runtime as bytecode libraries") | 11 option(BUILD_BC_LIBS "build the runtime as bytecode libraries") |
12 option(BUILD_SINGLE_LIB "build single runtime library" ON) | 12 option(BUILD_SINGLE_LIB "build single runtime library" ON) |
13 set(D_FLAGS -g -w -d CACHE STRING "runtime build flags, separated by ;") | 13 set(D_FLAGS -g -w -d CACHE STRING "runtime build flags, separated by ;") |
14 | 14 |
15 if(BUILD_SHARED_LIBS) | 15 if(BUILD_SHARED_LIBS) |
16 list(APPEND D_FLAGS -fPIC) | 16 list(APPEND D_FLAGS -relocation-model=pic) |
17 endif(BUILD_SHARED_LIBS) | 17 endif(BUILD_SHARED_LIBS) |
18 | 18 |
19 # build tango for D1, druntime for D2 | 19 # build tango for D1, druntime for D2 |
20 if(D_VERSION EQUAL 1) | 20 if(D_VERSION EQUAL 1) |
21 set(RUNTIME tango) | 21 set(RUNTIME tango) |