[MDEV-5076] MariaDB uses hardcoded ${LOCALBASE} for libexecinfo Created: 2013-09-27  Updated: 2014-06-20  Resolved: 2013-09-27

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.33a
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Alexandr Kovalenko Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None
Environment:

FreeBSD any version



 Description   

MariaDB uses hardcoded path for searching libexecinfo library (needed for backtrace() function) in cmake/os/FreeBSD.cmake:

INCLUDE_DIRECTORIES(/usr/local/include)
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} /usr/local/include )
SET(ENV

{LIB} "$ENV{LIB}

:/usr/local/lib")
FIND_LIBRARY(EXECINFO NAMES execinfo)
IF(EXECINFO)
SET(LIBEXECINFO ${EXECINFO})
ENDIF()

The problem is that despite the fact that "/usr/local" is default for LOCALBASE in FreeBSD, it could be changed and should be supported by port, which I maintain.

My proposition is to add EXECINFO_ROOT, which will default to "/usr/local", but could be overridden with -DEXECINFO_ROOT during configure stage.


Generated at Thu Feb 08 07:01:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.