Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
289fe372
Commit
289fe372
authored
Feb 15, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9350 Fix jemalloc detection for FreeBSD
on FreeBSD 10 jemalloc is in libc, no separate libjemalloc is needed
parent
74d86d1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
cmake/jemalloc.cmake
cmake/jemalloc.cmake
+11
-7
No files found.
cmake/jemalloc.cmake
View file @
289fe372
...
...
@@ -20,18 +20,22 @@ MACRO (CHECK_JEMALLOC)
SET
(
CMAKE_REQUIRED_LIBRARIES pthread dl m
)
SET
(
what bundled
)
ELSE
()
SET
(
libname jemalloc
)
SET
(
libname jemalloc
c
)
SET
(
what system
)
ENDIF
()
CHECK_LIBRARY_EXISTS
(
${
libname
}
malloc_stats_print
""
HAVE_JEMALLOC
)
FOREACH
(
lib
${
libname
}
)
CHECK_LIBRARY_EXISTS
(
${
lib
}
malloc_stats_print
""
HAVE_JEMALLOC_IN_
${
lib
}
)
IF
(
HAVE_JEMALLOC_IN_
${
lib
}
)
SET
(
LIBJEMALLOC
${
lib
}
)
SET
(
MALLOC_LIBRARY
"
${
what
}
jemalloc"
)
BREAK
()
ENDIF
()
ENDFOREACH
()
SET
(
CMAKE_REQUIRED_LIBRARIES
)
IF
(
HAVE_JEMALLOC
)
SET
(
LIBJEMALLOC
${
libname
}
)
SET
(
MALLOC_LIBRARY
"
${
what
}
jemalloc"
)
ELSEIF
(
NOT WITH_JEMALLOC STREQUAL
"auto"
)
MESSAGE
(
FATAL_ERROR
"
${
libname
}
is not found"
)
IF
(
NOT LIBJEMALLOC AND NOT WITH_JEMALLOC STREQUAL
"auto"
)
MESSAGE
(
FATAL_ERROR
"jemalloc is not found"
)
ENDIF
()
ENDIF
()
ENDMACRO
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment