diff --git a/cmake-d/Platform/Linux-dmd.cmake b/cmake-d/Platform/Linux-dmd.cmake index c97bb61..d531da7 100644 --- a/cmake-d/Platform/Linux-dmd.cmake +++ b/cmake-d/Platform/Linux-dmd.cmake @@ -56,11 +56,11 @@ SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a") #SET (CMAKE_D_FLAGS_INIT "-version=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS} ${DSTDLIB_TYPE} -I$ENV{D_PATH}/include -I$ENV{D_PATH}/import -I${CMAKE_PROJECT_SOURCE_DIR}") SET (CMAKE_D_FLAGS_INIT "") -# DMD can only produce 32-bit binaries for now -SET (CMAKE_D_LINK_FLAGS "-defaultlib=libphobos2.so") + +SET (CMAKE_D_LINK_FLAGS "") SET (CMAKE_D_FLAGS_DEBUG_INIT "-g -debug -L--export-dynamic ${DDOC_FLAGS}") # SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}") -SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}") +SET (CMAKE_D_FLAGS_RELEASE_INIT "-O ${DDOC_FLAGS}") SET (CMAKE_D_FLAGS_RELWITHDEBINFO_INIT "-O -g -L--export-dynamic ${DDOC_FLAGS}") # SET (CMAKE_D_CREATE_PREPROCESSED_SOURCE " -E > ") SET (CMAKE_D_CREATE_ASSEMBLY_SOURCE " -S -of")