|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-16 17:05 UTC] jon@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
Description: ------------ FreeBSD doesn't have (or need) the dl library. Linking against it unconditionally breaks the configure script. The following patch corrects this for FreeBSD (and probably other platforms) while retaining -ldl for those platforms that require it. Index: config.m4 =================================================================== RCS file: /repository/pecl/xdiff/config.m4,v retrieving revision 1.2 diff -u -r1.2 config.m4 --- config.m4 8 Feb 2004 10:49:25 -0000 1.2 +++ config.m4 16 Mar 2004 06:23:02 -0000 @@ -28,6 +28,11 @@ PHP_ADD_INCLUDE($XDIFF_DIR/include) + EXTRA_LIBS="-lm" + AC_CHECK_LIB(dl, dlopen, [ + EXTRA_LIBS="$EXTRA_LIBS -ldl" + ]) + LIBNAME=xdiff LIBSYMBOL=xdl_diff @@ -38,7 +43,7 @@ ],[ AC_MSG_ERROR([wrong xdiff lib version or lib not found]) ],[ - -L$XDIFF_DIR/lib -lm -ldl + -L$XDIFF_DIR/lib $EXTRA_LIBS ]) PHP_SUBST(XDIFF_SHARED_LIBADD)