Shared library build for AIX #10528
Replies: 3 comments 3 replies
-
That's rather unusual. On Linux ar doesn't even understand .so formats (they're executable), usually you would do it the other way, create an archive, and then create a shared library from that. you would do that with Due to a bug you can write What are you trying to achieve by archiving the shared library that wouldn't be achieved by creating a shared_library from the static archive? |
Beta Was this translation helpful? Give feedback.
-
@dcbaker, could you please provide some pointers on how the static libs are build by the meson code? For the below mentioned examples lib = static_library() Is there any-other way we can mention in the meson.build file to build the static libs? -Ddefault_library=static ?? |
Beta Was this translation helpful? Give feedback.
-
@dcbaker Can this code change help here? The rule in the build.ninja file updated to pick the static library instead of the object files.
The build generated the static lib with the archived shared lib
Code changes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello team,
I'm trying to build one of the package using meson. The package generates both shared and static library.
But as part of the AIX linking, we want the static library to archive the ".so" file instead of the ".o" files.
I was trying to look in the code where this shared library is being generated. So that once the .so is generated, I would like to archive it to a .a.
I would really appreciate it if you could show me some direction.
Beta Was this translation helpful? Give feedback.
All reactions