Changeset 418

Show
Ignore:
Timestamp:
12/13/08 22:39:24 (21 months ago)
Author:
des
Message:

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.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r409 r418  
     1OpenPAM ???                                                     ????-??-?? 
     2 
     3 - ENHANCE: remove static build autodetection, which doesn't work anyway. 
     4   Use an explicit, user-specified preprocessor variable instead. 
     5============================================================================ 
    16OpenPAM Hydrangea                                               2007-12-21 
    27 
  • trunk/include/security/openpam.h

    r417 r418  
    310310 * You are not expected to understand this. 
    311311 */ 
    312 #if defined(__FreeBSD__) 
     312#if !defined(PAM_SOEXT) 
    313313# define PAM_SOEXT ".so" 
    314 #else 
    315 # undef NO_STATIC_MODULES 
    316 # define NO_STATIC_MODULES 
    317 #endif 
    318  
    319 #if defined(__GNUC__) && !defined(__PIC__) && !defined(NO_STATIC_MODULES) 
     314#endif 
     315 
     316#if defined(OPENPAM_STATIC_MODULES) 
     317# if !defined(__GNUC__) 
     318#  error "Don't know how to build static modules on non-GNU compilers" 
     319# endif 
    320320/* gcc, static linking */ 
    321321# include <sys/cdefs.h> 
    322322# include <linker_set.h> 
    323 # define OPENPAM_STATIC_MODULES 
    324323# define PAM_EXTERN static 
    325324# define PAM_MODULE_ENTRY(name)                                         \