From 695c99469b566f35b864927c6d0db9602ea19a4c Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Fri, 19 Jun 2020 22:54:45 +1000 Subject: [PATCH] gcc: disable libdl detection closes #2526 --- src/gcc.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gcc.mk b/src/gcc.mk index 7d8cf2c6..150de99d 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'