Skip to content

Commit

Permalink
try to fix build for evansport (i686)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed Oct 14, 2021
1 parent a1a29b8 commit bddd31d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cross/erlang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ LICENSE = Apache 2.0
NATIVE_ERLANG_BIN_DIR = $(realpath $(WORK_DIR)/../../../native/erlang/work-native/install/usr/local/bin)
ENV = PATH=$$PATH:$(NATIVE_ERLANG_BIN_DIR)

GNU_CONFIGURE = 1

INSTALL_TARGET = erlang_install

CONFIGURE_ARGS = --without-javac
Expand All @@ -29,6 +27,14 @@ CONFIGURE_ARGS += --with-ssl=$(STAGING_INSTALL_PREFIX)
CONFIGURE_ARGS += erl_xcomp_sysroot=$(INSTALL_DIR)
CONFIGURE_ARGS += CFLAGS="-O2 -g -D_GNU_SOURCE"

include ../../mk/spksrc.archs.mk
ifeq ($(findstring $(ARCH),$(i686_ARCHS)),$(ARCH))
# force cross compilation for i686
CONFIGURE_ARGS += --host=$(TC_TARGET) --build=x86_64-pc-linux-gnu
else
CONFIGURE_ARGS += --host=$(TC_TARGET) --build=i686-pc-linux-gnu
endif

include ../../mk/spksrc.cross-cc.mk

.PHONY: erlang_install
Expand Down

0 comments on commit bddd31d

Please sign in to comment.