PERFORCE change 31784 for review

Dag-Erling Smorgrav des at FreeBSD.org
Sat May 24 09:52:08 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=31784

Change 31784 by des at des.at.des.thinksec.com on 2003/05/24 09:51:33

	Allow libpam to build on Linux.

Affected files ...

.. //depot/projects/openpam/lib/Makefile#19 edit

Differences ...

==== //depot/projects/openpam/lib/Makefile#19 (text+ko) ====

@@ -31,7 +31,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 # SUCH DAMAGE.
 #
-# $P4: //depot/projects/openpam/lib/Makefile#18 $
+# $P4: //depot/projects/openpam/lib/Makefile#19 $
 #
 
 LIB		 = pam
@@ -41,6 +41,11 @@
 CFLAGS		+= -I${.CURDIR}/../include
 CFLAGS		+= -DLIB_MAJ=${SHLIB_MAJOR}
 
+OSNAME		!= uname -s
+.if ${OSNAME} == "Linux"
+LDADD		+= -ldl
+.endif
+
 SRCS		 =
 SRCS		+= openpam_borrow_cred.c
 SRCS		+= openpam_configure.c


More information about the p4-projects mailing list