Skip to content

Commit

Permalink
mk: Only apply --localstatedir when >= DSM-7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Oct 7, 2021
1 parent 6343509 commit 91617ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mk/spksrc.configure.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ ifneq ($(strip $(GNU_CONFIGURE)),)
REAL_CONFIGURE_ARGS += $(TC_CONFIGURE_ARGS)
REAL_CONFIGURE_ARGS += --prefix=$(INSTALL_PREFIX)
# DSM7 appdir
ifeq ($(call version_ge, ${TCVERSION}, 7.0),1)
REAL_CONFIGURE_ARGS += --localstatedir=$(INSTALL_PREFIX_VAR)
endif
endif
REAL_CONFIGURE_ARGS += $(CONFIGURE_ARGS)

configure_msg:
Expand Down
2 changes: 2 additions & 0 deletions mk/spksrc.cross-cmake-env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ CMAKE_ARGS += -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE
CMAKE_ARGS += -DBUILD_SHARED_LIBS=ON

# DSM7 appdir
ifeq ($(call version_ge, ${TCVERSION}, 7.0),1)
CMAKE_ARGS += -DCMAKE_INSTALL_LOCALSTATEDIR=$(INSTALL_PREFIX_VAR)
endif

# Use native cmake
ifeq ($(strip $(USE_NATIVE_CMAKE)),1)
Expand Down

0 comments on commit 91617ea

Please sign in to comment.