)]}'
{
  "commit": "9ea17fa02dc91b981a1ef0a29f1d7e597b622afa",
  "tree": "40600277dc30fd1fbe02c1d4961b869901e283ad",
  "parents": [
    "73391faf3726ffdb91d77586643ce532a9ff8a75"
  ],
  "author": {
    "name": "Alexandre Janniaux",
    "email": "alexandre.janniaux@gmail.com",
    "time": "Tue Mar 10 18:46:58 2026 +0100"
  },
  "committer": {
    "name": "Ileana Dumitrescu",
    "email": "ileanadumitrescu95@gmail.com",
    "time": "Wed Apr 22 20:15:25 2026 +0300"
  },
  "message": "m4/libtool.m4: fix emscripten CXX postdeps using non-PIC sysroot\n\nCommit d8a934458b251b465b7d31da9ba9148a128a146d introduced shared\nlibraries support for emscripten, using -sSIDE_MODULE\u003d1, but the CXX\ndependency detection in _LT_SYS_HIDDEN_LIBDEPS will only try to use\n`-shared` link option to discover implicit dependencies.\n\nThe libraries and search paths reported by em++ differ depending on\nwhether -sSIDE_MODULE\u003d2 is passed:\n\n  em++ -shared -v conftest.o:\n    -L\u003csysroot\u003e/lib/wasm32-emscripten  (\u003c-- non-PIC)\n       -lhtml5... (other -l flags)\n\n  em++ -sSIDE_MODULE\u003d2 -shared -v conftest.o\n    -L\u003csysroot\u003e/lib/wasm32-emscripten/pic  (\u003c-- PIC)\n       (no -l flags)\n\nWithout -sSIDE_MODULE\u003d2, the detected postdeps contain the non-PIC\nsysroot path and system libraries. These get injected into the CXX\nshared library link line before emcc can append the PIC sysroot,\ncausing wasm-ld to resolve system libraries from non-PIC archives,\ntypically in VLC build system:\n\n    error: R_WASM_MEMORY_ADDR_LEB cannot be used against symbol;\n           recompile with -fPIC\n\nWe resolved the issue in VLC by patching the postdeps but they were not\ngenerated properly in the first place.\n\nFix by overriding output_verbose_link_cmd for emscripten in\n_LT_LANG_CXX_CONFIG. The override passes -sSIDE_MODULE\u003d2, matching what\narchive_cmds actually uses at link time so that the detected paths point\nto the PIC sysroot.\n\n* NEWS: Update.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "091b99b60559902065e10da31daaf495d2ff0b57",
      "old_mode": 33188,
      "old_path": "NEWS",
      "new_id": "813eb1a4f17d4ab3d1c56bb0b353cccfe27f0f00",
      "new_mode": 33188,
      "new_path": "NEWS"
    },
    {
      "type": "modify",
      "old_id": "d8627ba26b192cbd758651f10bcbcbbef947be13",
      "old_mode": 33188,
      "old_path": "m4/libtool.m4",
      "new_id": "84a34a1281d799f3871825c418cba17c2f14fdbd",
      "new_mode": 33188,
      "new_path": "m4/libtool.m4"
    }
  ]
}
