Skip to content

Commit

Permalink
deps/gmp: sync build flags with Yggdrasil/GMP
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jul 5, 2022
1 parent eb72c2a commit 4347b86
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions deps/gmp.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
## GMP ##
include $(SRCDIR)/gmp.version

ifneq ($(USE_BINARYBUILDER_GMP),1)

GMP_CONFIGURE_OPTS := $(CONFIGURE_COMMON)
GMP_CONFIGURE_OPTS += --enable-cxx --enable-shared --disable-static

ifeq ($(BUILD_ARCH),x86_64)
GMP_CONFIGURE_OPTS += --enable-fat
endif

ifeq ($(SANITIZE),1)
GMP_CONFIGURE_OPTS += --disable-assembly
endif
Expand All @@ -9,7 +18,6 @@ ifeq ($(BUILD_OS),WINNT)
GMP_CONFIGURE_OPTS += --srcdir="$(subst \,/,$(call mingw_to_dos,$(SRCCACHE)/gmp-$(GMP_VER)))"
endif

ifneq ($(USE_BINARYBUILDER_GMP),1)

$(SRCCACHE)/gmp-$(GMP_VER).tar.bz2: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://gmplib.org/download/gmp/$(notdir $@)
Expand Down Expand Up @@ -55,7 +63,7 @@ $(SRCCACHE)/gmp-$(GMP_VER)/source-patched: \
$(BUILDDIR)/gmp-$(GMP_VER)/build-configured: $(SRCCACHE)/gmp-$(GMP_VER)/source-extracted $(SRCCACHE)/gmp-$(GMP_VER)/source-patched
mkdir -p $(dir $@)
cd $(dir $@) && \
$(dir $<)/configure $(CONFIGURE_COMMON) F77= --enable-cxx --enable-shared --disable-static $(GMP_CONFIGURE_OPTS)
$(dir $<)/configure $(GMP_CONFIGURE_OPTS)
echo 1 > $@

$(BUILDDIR)/gmp-$(GMP_VER)/build-compiled: $(BUILDDIR)/gmp-$(GMP_VER)/build-configured
Expand Down

0 comments on commit 4347b86

Please sign in to comment.