Feature Request: Dual shared and static builds
Marty Plummer
ntzrmtthihu777 at gmail.com
Tue Dec 9 21:48:05 UTC 2014
As the subject line states. I realize, from the output of your configure
script, that gmp.h differs depending on if you produce a static or shared
binary, but, I believe this can still be done pretty well.
If you were to chose a preprocessor define to signal shared vs static
(default to shared), one could simply merge them into a single header, like
so:
#ifndef __GMP_H__
# define __GMP_H__
# if defined GMP_STATIC //arbitrarily chosen to say yes, I want the static
version
<insert contents of static version of header>
# else // I want the shared version
<insert contents of shared version of header>
# endif
#endif
Not sure how much would require changing on your end, but this *should*
work, or can be made to work.
More information about the gmp-discuss
mailing list