Remove static build auto-detection. It was always an ugly hack, and it
doesn't work at all on some platforms. Instead of trying to figure it out ourselves, rely on the user to specify it on the compiler command line. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@418 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
9f0d6d6267
commit
bc44ba0ac2
5
HISTORY
5
HISTORY
|
@ -1,3 +1,8 @@
|
|||
OpenPAM ??? ????-??-??
|
||||
|
||||
- ENHANCE: remove static build autodetection, which doesn't work anyway.
|
||||
Use an explicit, user-specified preprocessor variable instead.
|
||||
============================================================================
|
||||
OpenPAM Hydrangea 2007-12-21
|
||||
|
||||
- ENHANCE: when compiling with GCC, mark up API functions with GCC
|
||||
|
|
|
@ -309,18 +309,17 @@ struct pam_module {
|
|||
* Infrastructure for static modules using GCC linker sets.
|
||||
* You are not expected to understand this.
|
||||
*/
|
||||
#if defined(__FreeBSD__)
|
||||
#if !defined(PAM_SOEXT)
|
||||
# define PAM_SOEXT ".so"
|
||||
#else
|
||||
# undef NO_STATIC_MODULES
|
||||
# define NO_STATIC_MODULES
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && !defined(__PIC__) && !defined(NO_STATIC_MODULES)
|
||||
#if defined(OPENPAM_STATIC_MODULES)
|
||||
# if !defined(__GNUC__)
|
||||
# error "Don't know how to build static modules on non-GNU compilers"
|
||||
# endif
|
||||
/* gcc, static linking */
|
||||
# include <sys/cdefs.h>
|
||||
# include <linker_set.h>
|
||||
# define OPENPAM_STATIC_MODULES
|
||||
# define PAM_EXTERN static
|
||||
# define PAM_MODULE_ENTRY(name) \
|
||||
static char _pam_name[] = name PAM_SOEXT; \
|
||||
|
|
Loading…
Reference in New Issue