Commits

Ruslan Osmanov  committed 22c317d

Fix: build error with custom libevent installation prefixes like /lib(John Wamer)

  • Participants
  • Parent commits 3e9136c

Comments (0)

Files changed (1)

     EVENT_LIBS="-L$EVENT_DIR/$PHP_LIBDIR"
     EVENT_LIBDIR=$EVENT_DIR/$PHP_LIBDIR
   fi
-  LDFLAGS="$EVENT_LIBS -levent_core $LDFLAGS"
+  LDFLAGS="$EVENT_LIBS $LDFLAGS"
+  LIBS="$LIBS -levent_core"
 
   dnl {{{ event_core
 	AC_CHECK_LIB(event_core, event_free, [
   PHP_SUBST(EVENT_SHARED_LIBADD)
   PHP_SUBST(CFLAGS)
   PHP_SUBST(LDLAGS)
+  PHP_SUBST(LIBS)
 fi
 
 dnl vim: ft=m4.sh fdm=marker cms=dnl\ %s