Skip to content

Commit 2f9c789

Browse files
committed
Bug#19180531: UNABLE TO COMPILE MYSQL-TRUNK WITH DEBUG DUE TO
DTRACE PROBLEMS Follow up patch. Adding compile definitions was resulting in build break on some platforms. Reverting compile definitions appended to CFLAGS.
1 parent 3e2de58 commit 2f9c789

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

cmake/dtrace.cmake

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,7 @@ FUNCTION(DTRACE_INSTRUMENT target)
121121
# dtrace on Linux runs gcc and uses flags from environment
122122
SET(CFLAGS_SAVED $ENV{CFLAGS})
123123
STRING(REGEX REPLACE "-W[A-Za-z0-9-]*" "" C_FLAGS "${CMAKE_C_FLAGS}")
124-
GET_PROPERTY(compile_definitions DIRECTORY PROPERTY COMPILE_DEFINITIONS)
125-
FOREACH( def ${compile_definitions} )
126-
SET(COMP_DEFS "${COMP_DEFS} -D${def}")
127-
ENDFOREACH()
128-
SET(ENV{CFLAGS} "${C_FLAGS} ${COMP_DEFS}")
124+
SET(ENV{CFLAGS} ${C_FLAGS})
129125
SET(outfile "${CMAKE_BINARY_DIR}/probes_mysql.o")
130126
# Systemtap object
131127
EXECUTE_PROCESS(

0 commit comments

Comments
 (0)