-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add namespace to getopt functions #134
Conversation
This enables static linking. Otherwise, these functions conflict with the standard getopt functions.
5a5a116
to
23d1942
Compare
If your system has getopt, then you should use the system getopt for static linking. I have made main.c optionally use system getopt by defining
|
Thanks. This is a better solution to the problem than my patch. |
@lh3 on CentOS 6.6 and using rel v2.12 running:
still failed linking. Having Running the Any chance of also having this fixed in the makefile? |
The github HEAD uses a different command-line argument parser, which is functionally equivalent to getopt. It won't have this issue any more. |
Static building of 2.9 was impossible due to the issue in lh3/minimap2#134
This enables static linking. Otherwise, these functions conflict with the standard getopt functions.