Solaris and GNU/Linux have fucked up PAM, so no -static there
This commit is contained in:
		
							
								
								
									
										4
									
								
								Build.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Build.sh
									
									
									
									
									
								
							| @@ -1,5 +1,5 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| # $MirOS: src/bin/mksh/Build.sh,v 1.20 2005/10/25 20:54:29 tg Exp $ | # $MirOS: src/bin/mksh/Build.sh,v 1.21 2005/10/25 20:59:00 tg Exp $ | ||||||
| #- | #- | ||||||
| # This script recognises CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS and | # This script recognises CC, CFLAGS, CPPFLAGS, LDFLAGS, LIBS and | ||||||
| # NROFF. Add -d for dynamic linkage (on Mac, GNU/Linux and Solaris). | # NROFF. Add -d for dynamic linkage (on Mac, GNU/Linux and Solaris). | ||||||
| @@ -55,10 +55,12 @@ Darwin) | |||||||
| Linux) | Linux) | ||||||
| 	# Hello Mr Drepper, we all like you too...</sarcasm> | 	# Hello Mr Drepper, we all like you too...</sarcasm> | ||||||
| 	SRCS="$SRCS compat.c strlfun.c" | 	SRCS="$SRCS compat.c strlfun.c" | ||||||
|  | 	LDSTATIC= # glibc dlopens the PAM library with getpwnam at runtime | ||||||
| 	;; | 	;; | ||||||
| SunOS) | SunOS) | ||||||
| 	SRCS="$SRCS compat.c" | 	SRCS="$SRCS compat.c" | ||||||
| 	CFLAGS="$CFLAGS -Wno-char-subscripts" | 	CFLAGS="$CFLAGS -Wno-char-subscripts" | ||||||
|  | 	LDSTATIC= # alternatively you need libdl... same suckage as above | ||||||
| 	;; | 	;; | ||||||
| esac | esac | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user