Skip to content

Commit 9f7fbaf

Browse files
author
Ilia Alshanetsky
committed
Proper lib detection.
1 parent 22517ce commit 9f7fbaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if test "$PHP_MYSQLI" != "no"; then
5050
],[
5151
AC_MSG_ERROR([wrong mysql library version or lib not found])
5252
],[
53-
-L$MYSQLI_DIR -lm -ldl
53+
`$PHP_MYSQLI/bin/mysql_config --libs | sed -e "s/'//g"`
5454
])
5555
PHP_SUBST(MYSQLI_SHARED_LIBADD)
5656

0 commit comments

Comments
 (0)