Skip to content

Commit

Permalink
build: Pass missing preprocessor flag when cross-building "mkoctfile".
Browse files Browse the repository at this point in the history
* src/module.mk: Set preprocessor variable "OCTAVE_MEX_SOVERSION" in the build
rules for the mkoctfile cross-compiler.
  • Loading branch information
mmuetzel committed Oct 18, 2024
1 parent d7bdfae commit 0f730ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ if AMCOND_RELOCATE_ALL
endif

%reldir%/$(host_triplet)-mkoctfile$(BUILD_EXEEXT): %reldir%/$(host_triplet)-mkoctfile.cc
$(BUILD_CXX) -o %reldir%/$(host_triplet)-mkoctfile$(BUILD_EXEEXT) $(OCTAVE_REPLACE_PREFIX_CPPFLAGS) -DCROSS=1 $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) -I$(srcdir)/src %reldir%/$(host_triplet)-mkoctfile.cc
$(BUILD_CXX) -o %reldir%/$(host_triplet)-mkoctfile$(BUILD_EXEEXT) $(OCTAVE_REPLACE_PREFIX_CPPFLAGS) -DOCTAVE_MEX_SOVERSION="$(OCTAVE_LIBOCTMEX_SOVERSION_MAJOR)" -DCROSS=1 $(DEFAULT_INCLUDES) $(BUILD_CXXFLAGS) $(BUILD_LDFLAGS) -I$(srcdir)/src %reldir%/$(host_triplet)-mkoctfile.cc

%reldir%/$(host_triplet)-mkoctfile.cc: %reldir%/mkoctfile.in.cc build-aux/subst-cross-config-vals.sh | %reldir%/$(octave_dirstamp)
$(AM_V_GEN)$(call simple-filter-rule,build-aux/subst-cross-config-vals.sh)
Expand Down

0 comments on commit 0f730ee

Please sign in to comment.