Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native/libmysqlclient: Fix build by using legacy cmake version #6212

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions mk/spksrc.native-cmake-env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@
CMAKE_ARGS += -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX)
CMAKE_ARGS += -DCMAKE_BUILD_TYPE=Release

# Use native cmake
# Use native cmake (latest stable)
ifeq ($(strip $(USE_NATIVE_CMAKE)),1)
BUILD_DEPENDS += native/cmake
CMAKE_PATH = $(realpath $(WORK_DIR)/../../../native/cmake/work-native/install/usr/local/bin)
CMAKE_PATH = $(abspath $(CURDIR)/../../native/cmake/work-native/install/usr/local/bin)
ENV += PATH=$(CMAKE_PATH):$$PATH
export PATH := $(CMAKE_PATH):$(PATH)
endif

# Use native cmake (Debian 10 "Buster")
ifeq ($(strip $(USE_NATIVE_CMAKE_LEGACY)),1)
BUILD_DEPENDS += native/cmake-legacy
CMAKE_PATH = $(abspath $(CURDIR)/../../native/cmake-legacy/work-native/install/usr/local/bin)
ENV += PATH=$(CMAKE_PATH):$$PATH
export PATH := $(CMAKE_PATH):$(PATH)
endif

# Use ninja to build
Expand Down
2 changes: 2 additions & 0 deletions native/libmysqlclient/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ LICENSE = GNU GPLv2

PRE_INSTALL_TARGET = libmysqlclient_pre_install

USE_NATIVE_CMAKE_LEGACY = 1

# MySQL specific:
CMAKE_ARGS += -DSTACK_DIRECTION=1
CMAKE_ARGS += -DWITH_UNIT_TESTS=OFF
Expand Down
Loading