Skip to content

Commit

Permalink
Fix openssl install for CMake to detect it
Browse files Browse the repository at this point in the history
  • Loading branch information
ymartin59 committed Oct 4, 2020
1 parent c8e9dda commit cbda607
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cross/openssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ openssl_configure:

.PHONY: openssl_install
openssl_install:
$(RUN) $(MAKE) install_sw DESTDIR=$(INSTALL_DIR)
$(RUN) $(MAKE) install_sw INSTALL_PREFIX=$(INSTALL_DIR)
22 changes: 11 additions & 11 deletions mk/spksrc.cross-cmake-env.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Configuration for cmake build
# Configuration for CMake build
#
CMAKE_ARGS += -DCMAKE_INSTALL_PREFIX=$(INSTALL_PREFIX)
CMAKE_ARGS += -DCMAKE_CROSSCOMPILING=TRUE
Expand All @@ -15,29 +15,29 @@ CMAKE_ARGS += -DBUILD_SHARED_LIBS=ON

# set default ASM build environment
ifeq ($(strip $(CMAKE_USE_NASM)),1)
DEPENDS += native/nasm
NASM_PATH = $(WORK_DIR)/../../../native/nasm/work-native/install/usr/local/bin
ENV += PATH=$(NASM_PATH):$$PATH
ENV += AS=$(NASM_PATH)/nasm
CMAKE_ARGS += -DENABLE_ASSEMBLY=ON
DEPENDS += native/nasm
NASM_PATH = $(WORK_DIR)/../../../native/nasm/work-native/install/usr/local/bin
ENV += PATH=$(NASM_PATH):$$PATH
ENV += AS=$(NASM_PATH)/nasm
CMAKE_ARGS += -DENABLE_ASSEMBLY=ON
else
CMAKE_USE_NASM = 0
CMAKE_ARGS += -DENABLE_ASSEMBLY=OFF
CMAKE_USE_NASM = 0
CMAKE_ARGS += -DENABLE_ASSEMBLY=OFF
endif

# set default build directory
ifeq ($(strip $(CMAKE_USE_DESTDIR)),)
CMAKE_USE_DESTDIR = 1
CMAKE_USE_DESTDIR = 1
endif

# set default build directory
ifeq ($(strip $(CMAKE_DESTDIR)),)
CMAKE_DESTDIR = $(INSTALL_DIR)
CMAKE_DESTDIR = $(INSTALL_DIR)
endif

# set default build directory
ifeq ($(strip $(CMAKE_BUILD_DIR)),)
CMAKE_BUILD_DIR = $(WORK_DIR)/$(PKG_DIR)/build
CMAKE_BUILD_DIR = $(WORK_DIR)/$(PKG_DIR)/build
endif

# Define per arch specific common options
Expand Down
9 changes: 3 additions & 6 deletions mk/spksrc.cross-cmake.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Build go programs
#
# Build CMake programs
#
# prerequisites:
# - cross/module depends on cmake
#
# remarks:
# - improvised from spksrc.cross-go.mk
#
#

# Common makefiles
include ../../mk/spksrc.common.mk
Expand Down

0 comments on commit cbda607

Please sign in to comment.