File: patch_mariadb.cmake

package info (click to toggle)
neko 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,412 kB
  • sloc: ansic: 19,583; ml: 4,924; sh: 54; makefile: 23
file content (28 lines) | stat: -rw-r--r-- 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# https://jira.mariadb.org/browse/CONC-174
set(cmakelists ${mariadb_source}/CMakeLists.txt)

file(READ ${cmakelists} content)

# do not use replace /MD with /MT
string(REPLACE
	"STRING(REPLACE \"/MD\" \"/MT\" COMPILER_FLAGS \${COMPILER_FLAGS})"
	"# STRING(REPLACE \"/MD\" \"/MT\" COMPILER_FLAGS \${COMPILER_FLAGS})"
	content "${content}"
)

file(WRITE ${cmakelists} "${content}")

# https://jira.mariadb.org/browse/CONC-764
if(${processor} STREQUAL "arm64")
	set(ma_context ${mariadb_source}/libmariadb/ma_context.c)

	file(READ ${ma_context} content)

	string(REPLACE
		"\"x18\", "
		""
		content "${content}"
	)

	file(WRITE ${ma_context} "${content}")
endif()