2015-02-04 17:14:57 +01:00
|
|
|
$NetBSD: patch-extconf.rb,v 1.2 2015/02/04 16:14:57 taca Exp $
|
2014-07-25 18:21:26 +02:00
|
|
|
|
2015-02-04 17:14:57 +01:00
|
|
|
* Relax condition to make more operating system support.
|
|
|
|
* Do not override LDFLAGS.
|
2014-07-25 18:21:26 +02:00
|
|
|
|
2015-02-04 17:14:57 +01:00
|
|
|
--- extconf.rb.orig 2015-01-26 14:06:33.000000000 +0000
|
2014-07-25 18:21:26 +02:00
|
|
|
+++ extconf.rb
|
2015-02-04 17:14:57 +01:00
|
|
|
@@ -18,8 +18,7 @@ implementation = case CONFIG['host_os']
|
|
|
|
when /sunos|solaris/i; 'shadow'
|
|
|
|
when /freebsd|mirbsd|netbsd|openbsd/i; 'pwd'
|
|
|
|
when /darwin/i; 'pwd'
|
|
|
|
- else; nil
|
|
|
|
- "This library works on OS X, FreeBSD, MirBSD, NetBSD, OpenBSD, Solaris and Linux."
|
|
|
|
+ else; 'pwd'
|
|
|
|
end
|
|
|
|
|
|
|
|
ok = true
|
|
|
|
@@ -29,7 +28,6 @@ when 'shadow'
|
2014-07-25 18:21:26 +02:00
|
|
|
#$LDFLAGS = "-lshadow"
|
|
|
|
|
|
|
|
if( ! (ok &= have_library("shadow","getspent")) )
|
|
|
|
- $LDFLAGS = ""
|
|
|
|
ok = have_func("getspent")
|
|
|
|
end
|
|
|
|
|