ldc: add package (#1078)
[termux-packages] / packages / ldc / ldc-config-stdlib.patch.beforehostbuild.in
1 diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
2 index 32795da6..091d344b 100644
3 --- a/runtime/CMakeLists.txt
4 +++ b/runtime/CMakeLists.txt
5 @@ -78,6 +78,7 @@ file(GLOB_RECURSE DRUNTIME_D_GCSTUB ${RUNTIME_DIR}/src/gcstub/*.d)
6 list(REMOVE_ITEM DRUNTIME_D ${DRUNTIME_D_GCSTUB})
7 # remove some modules in rt/
8 list(REMOVE_ITEM DRUNTIME_D
9 + ${RUNTIME_DIR}/src/core/stdc/tgmath.d
10 ${RUNTIME_DIR}/src/rt/alloca.d
11 ${RUNTIME_DIR}/src/rt/deh.d
12 ${RUNTIME_DIR}/src/rt/deh_win32.d
13 @@ -551,7 +551,9 @@ include(profile-rt/DefineBuildProfileRT.cmake)
14 # Set up build and install targets
15 #
16
17 -set(RT_CFLAGS "")
18 +set(RT_CFLAGS "@TERMUX_C_FLAGS@")
19 +set(CMAKE_C_COMPILER @TERMUX_C_COMPILER@)
20 +set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
21
22 if(APPLE AND MULTILIB)
23 # On OS X, build "fat" libraries containing code for both architectures.