Skip to content

Commit ea891d4

Browse files
committed
fix: use LDFLAGS when compiling gmp's configure test programs
Needed to ensure macOS cross-compilation doesn't break when moving to an LLD based toolchain, which will happen in the next commit.
1 parent c2fe7c6 commit ea891d4

File tree

2 files changed

+626
-0
lines changed

2 files changed

+626
-0
lines changed

depends/packages/gmp.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $(package)_version=6.3.0
33
$(package)_download_path=https://ftp.gnu.org/gnu/gmp
44
$(package)_file_name=gmp-$($(package)_version).tar.bz2
55
$(package)_sha256_hash=ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb
6+
$(package)_patches=include_ldflags_in_configure.patch
67

78
define $(package)_set_vars
89
$(package)_config_opts += --disable-shared --enable-cxx --enable-fat
@@ -11,6 +12,10 @@ $(package)_cflags_armv7l += -march=armv7-a
1112
$(package)_cflags_x86_64 += -march=x86-64
1213
endef
1314

15+
define $(package)_preprocess_cmds
16+
patch -p1 < $($(package)_patch_dir)/include_ldflags_in_configure.patch
17+
endef
18+
1419
define $(package)_config_cmds
1520
$($(package)_autoconf)
1621
endef

0 commit comments

Comments
 (0)