summaryrefslogtreecommitdiffstats
path: root/src/gcc.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2020-06-19 12:54:45 (GMT)
committerTony Theodore <tonyt@logyst.com>2020-06-19 12:54:45 (GMT)
commit695c99469b566f35b864927c6d0db9602ea19a4c (patch)
tree7e0338b1b9fe9ce5ad4ab989cc068cd7628c26b6 /src/gcc.mk
parent6c682c678a1bef93335590931239e0526eb88c2d (diff)
downloadmxe-695c99469b566f35b864927c6d0db9602ea19a4c.zip
mxe-695c99469b566f35b864927c6d0db9602ea19a4c.tar.gz
mxe-695c99469b566f35b864927c6d0db9602ea19a4c.tar.bz2
gcc: disable libdl detection
closes #2526
Diffstat (limited to 'src/gcc.mk')
-rw-r--r--src/gcc.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index 7d8cf2c..150de99 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -55,6 +55,14 @@ define $(PKG)_CONFIGURE
endef
define $(PKG)_BUILD_mingw-w64
+ # `configure`'s libdl detection:
+ # - bypasses the gcc/mingw use of `LoadLibrary`
+ # - adds unnecessary dependency
+ # - causes unexpected linking errors
+ # - can't be reliably disabled in all subdirs
+ # safe option is `make clean`, but we don't want to enforce that
+ -rm -v '$(PREFIX)/$(TARGET)'/{lib,bin}/libdl.*
+
# install mingw-w64 headers
$(call PREPARE_PKG_SOURCE,mingw-w64,$(BUILD_DIR))
mkdir '$(BUILD_DIR).headers'