You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the conversion of my project, I created a repository for libpng.
As documentation of SwiftPM suggests, you have to add custom module.modulemap in include folder, if you have custom include layout. As I only need one header to be exported, I had to it. I also included
link"z"
in that modulemap as libpng depends on it, but compilation fails with "undefined symbols" error. -Xlinker -lz solves the issue.
The text was updated successfully, but these errors were encountered:
We don't pass modulemaps of system packages to clang using -fmodule-map-file. Even after passing the modulemap file the autolinking doesn't work i.e. clang should link "z" automatically but it doesn't (unlike swiftc)
Additional Detail from JIRA
md5: e311f70b79f2bf96b2c2df894d8f10f0
duplicates:
Issue Description:
During the conversion of my project, I created a repository for libpng.
As documentation of SwiftPM suggests, you have to add custom module.modulemap in include folder, if you have custom include layout. As I only need one header to be exported, I had to it. I also included
in that modulemap as libpng depends on it, but compilation fails with "undefined symbols" error. -Xlinker -lz solves the issue.
The text was updated successfully, but these errors were encountered: