Changeset 139643 in webkit


Ignore:
Timestamp:
Jan 14, 2013 12:42:26 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Do not hardcode -ldl in OPENGL_LIBS
https://bugs.webkit.org/show_bug.cgi?id=96602

Patch by Alexandre Rostovtsev <tetromino@gentoo.org> on 2013-01-14
Reviewed by Philippe Normand.

Some non-Linux systems, e.g. FreeBSD, have dlopen() as part of their
libc, and do not use a separate libdl.

  • configure.ac:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r139466 r139643  
     12013-01-14  Alexandre Rostovtsev  <tetromino@gentoo.org>
     2
     3        Do not hardcode -ldl in OPENGL_LIBS
     4        https://bugs.webkit.org/show_bug.cgi?id=96602
     5
     6        Reviewed by Philippe Normand.
     7
     8        Some non-Linux systems, e.g. FreeBSD, have dlopen() as part of their
     9        libc, and do not use a separate libdl.
     10
     11        * configure.ac:
     12
    1132013-01-11  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/configure.ac

    r139466 r139643  
    282282
    283283
     284# check whether dlopen() is in the core libc like on FreeBSD, or in a separate
     285# libdl like on GNU/Linux (in which case we want to link to libdl)
     286AC_CHECK_FUNC([dlopen], [], [AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
     287AC_SUBST([DLOPEN_LIBS])
     288
     289
    284290# determine the GTK+ version to use
    285291AC_MSG_CHECKING([the GTK+ version to use])
     
    10291035    acceleration_backend_description+=", glx"
    10301036   fi
    1031    OPENGL_LIBS+=" -ldl"
     1037   OPENGL_LIBS+=" $DLOPEN_LIBS"
    10321038   acceleration_backend_description+=")"
    10331039fi
Note: See TracChangeset for help on using the changeset viewer.