Add loadDynlib to micropip._compat (split off from #2591). More work split off of #2591 because #2591 mysteriously fails *all* the github actions tests, even though #2591 currently only changes micropip and not all tests load micropip.
package:
  name: libiconv
  version: "1.16"

source:
  url: https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
  sha256: e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04

build:
  library: true
  script: |
    emconfigure ./configure \
       CFLAGS="-fPIC" \
       --disable-dependency-tracking \
       --disable-shared \
       --prefix=${WASM_LIBRARY_DIR}

    emmake make -j ${PYODIDE_JOBS:-3}
    emmake make install

package:
  name: libiconv
  version: "1.16"

source:
  url: https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz
  sha256: e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04

build:
  library: true
  script: |
    emconfigure ./configure \
       CFLAGS="-fPIC" \
       --disable-dependency-tracking \
       --disable-shared \
       --prefix=${WASM_LIBRARY_DIR}

    emmake make -j ${PYODIDE_JOBS:-3}
    emmake make install
