Skip to content

[lerc] update to 4.1.1#50592

Closed
toge wants to merge 2 commits into
microsoft:masterfrom
toge:lerc-4.1.1
Closed

[lerc] update to 4.1.1#50592
toge wants to merge 2 commits into
microsoft:masterfrom
toge:lerc-4.1.1

Conversation

@toge

@toge toge commented Mar 21, 2026

Copy link
Copy Markdown
Contributor
  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version, or no changes were necessary.
  • Any fixed CI baseline and CI feature baseline entries are removed from that file, or no entries needed to be changed.
  • All patch files in the port are applied and succeed.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Exactly one version is added in each modified versions file.

https://github.com/Esri/lerc/releases/tag/js_v4.1.1

@toge toge marked this pull request as draft March 22, 2026 03:05
Comment on lines +26 to +32
@@ -9,5 +9,5 @@ URL: @PROJECT_HOMEPAGE_URL@
Version: @PROJECT_VERSION@
Cflags: -I${includedir}
Cflags.private: -DLERC_STATIC
-Libs: -L${libdir} -lLerc
+Libs: -L${libdir} -lLerc @FAKE_CXX_LINKAGE@
Libs.private: -lstdc++

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The patch was already smarter than upstream. There is no libstdc++ on some targets.

Suggested change
@@ -9,5 +9,5 @@ URL: @PROJECT_HOMEPAGE_URL@
Version: @PROJECT_VERSION@
Cflags: -I${includedir}
Cflags.private: -DLERC_STATIC
-Libs: -L${libdir} -lLerc
+Libs: -L${libdir} -lLerc @FAKE_CXX_LINKAGE@
Libs.private: -lstdc++
@@ -10,4 +10,4 @@ URL: @PROJECT_HOMEPAGE_URL@
Cflags: -I${includedir}
Cflags.private: -DLERC_STATIC
Libs: -L${libdir} -lLerc
-Libs.private: -lstdc++
+Libs.private: @FAKE_CXX_LINKAGE@

Comment on lines 14 to 16
+ string(APPEND FAKE_CXX_LINKAGE " ${CMAKE_LINK_LIBRARY_FILE_FLAG}${lib}")
+ else()
+ string(APPEND FAKE_CXX_LINKAGE " ${CMAKE_LINK_LIBRARY_FLAG}${lib}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW today I would change it to

Suggested change
+ string(APPEND FAKE_CXX_LINKAGE " ${lib}")
+ else()
+ string(APPEND FAKE_CXX_LINKAGE " -l${lib}")

because (our) pc files use gcc style options everywhere.

@dg0yt dg0yt mentioned this pull request May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants