Should we introduce a setting to determine if the port is a library or application #143
Replies: 2 comments 1 reply
-
|
Could we perhaps have an env var that says the name of the library? Then if you don’t specify it, it is not a library but if you do, it is? Then you can use that to generate the linker options. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
We have now sorted this out I believe. @IgorTodorovskiIBM re-open if you disagree (and perhaps create an issue now in meta for it) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Many of our libraries currently append a set of extra FLAGS to the .env like in the case of openssl: https://github.com/ZOSOpenTools/opensslport/blob/main/buildenv#L35
We could simplify this via
zopen generateby asking what type of project it is (library, application, or both).This would then set a variable in the buildenv as follows:
ZOPEN_PORT_TYPE="LIBRARY"orZOPEN_PORT_TYPE="APPLICATION"ZOPEN_PORT_TYPE="APPLICATION_AND_LIBRARY"We would also introduce another setting for the installed library names
ZOPEN_PORT_LIB_NAMES="ssl crypto"If LIBRARY is specified, then we can automatically add the ZOPEN_EXTRA_CFLAGS, CXXFLAGS, LDFLAGS, and LIBS to the .env.
We could also use this setting to help categorize the ports in https://github.com/ZOSOpenTools/meta/blob/main/docs/Latest.md
Beta Was this translation helpful? Give feedback.
All reactions