Changeset 8aa887870319cc0089f781b6ecd332ae7af5c02c
- Timestamp:
- 07/24/07 19:15:59
(1 year ago)
- Author:
- Damien Fouilleul <damienf@videolan.org>
- git-committer:
- Damien Fouilleul <damienf@videolan.org> 1185297359 +0000
- git-parent:
[935af8b0594944307465a9d25c27625f663681b4]
- git-author:
- Damien Fouilleul <damienf@videolan.org> 1185297359 +0000
- Message:
- mingw32: fix libtool linking.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r935af8b |
r8aa8878 |
|
| 222 | 222 | include Modules.am |
|---|
| 223 | 223 | |
|---|
| 224 | | if HAVE_WIN32 |
|---|
| 225 | | LTLIBVLC = -L\$(top_builddir)/src -lvlc.dll |
|---|
| 226 | | else |
|---|
| 227 | 224 | LTLIBVLC = -L\$(top_builddir)/src -lvlc |
|---|
| 228 | | endif |
|---|
| 229 | 225 | |
|---|
| 230 | 226 | AM_LDFLAGS = -rpath '\$(libvlcdir)' -avoid-version \\ |
|---|
| r1345a35 |
r8aa8878 |
|
| 221 | 221 | *mingw32* | *cygwin* | *wince* | *mingwce* | *pe*) |
|---|
| 222 | 222 | AC_CHECK_TOOL(WINDRES, windres, :) |
|---|
| 223 | | enable_libtool="no" |
|---|
| 224 | 223 | |
|---|
| 225 | 224 | case "${host_os}" in |
|---|
| … | … | |
| 243 | 242 | if test "${SYS}" = "mingw32"; then |
|---|
| 244 | 243 | # add ws2_32 for closesocket, select, recv |
|---|
| 245 | | CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long"; CPPFLAGS="${CPPFLAGS_save}" |
|---|
| 246 | 244 | VLC_ADD_LDFLAGS([libvlc],[-lws2_32 -lnetapi32 -lwinmm]) |
|---|
| 247 | 245 | VLC_ADD_LDFLAGS([vlc activex mozilla],[-mwindows]) |
|---|
| … | … | |
| 251 | 249 | if test "${SYS}" = "mingwce"; then |
|---|
| 252 | 250 | # add ws2 for closesocket, select, recv |
|---|
| 253 | | CPPFLAGS_save="${CPPFLAGS_save} -D_OFF_T_ -D_off_t=long"; CPPFLAGS="${CPPFLAGS_save}" |
|---|
| 254 | 251 | VLC_ADD_CPPFLAGS([libvlc vlc],[-Dmain(a,b)=maince(a,b)]) |
|---|
| 255 | 252 | VLC_ADD_LDFLAGS([libvlc vlc],[-lws2 -e WinMainCRTStartup]) |
|---|
| … | … | |
| 318 | 315 | dnl -- Courmisch |
|---|
| 319 | 316 | dnl |
|---|
| | 317 | |
|---|
| | 318 | dnl override platform specific check for dependent libraries |
|---|
| | 319 | dnl otherwise libtool linking of shared libraries will |
|---|
| | 320 | dnl fail on anything other than pass_all. |
|---|
| | 321 | AC_CACHE_CHECK([how to recognize dependent libraries], |
|---|
| | 322 | lt_cv_deplibs_check_method, |
|---|
| | 323 | [lt_cv_deplibs_check_method=pass_all |
|---|
| | 324 | ]) |
|---|
| | 325 | |
|---|
| 320 | 326 | AC_DISABLE_STATIC |
|---|
| 321 | 327 | AC_LIBTOOL_DLOPEN |
|---|
| 322 | | dnl AC_LIBTOOL_WIN32_DLL - couldn't get libtool to work on Win32 so far |
|---|
| | 328 | AC_LIBTOOL_WIN32_DLL |
|---|
| 323 | 329 | m4_undefine([AC_PROG_F77]) |
|---|
| 324 | 330 | m4_defun([AC_PROG_F77],[]) |
|---|
| 325 | 331 | AC_PROG_LIBTOOL |
|---|
| | 332 | |
|---|
| | 333 | m4_undefine([AC_DEPLIBS_CHECK_METHOD]) |
|---|
| | 334 | m4_defun([AC_DEPLIBS_CHECK_METHOD],[]) |
|---|
| 326 | 335 | |
|---|
| 327 | 336 | AC_ARG_ENABLE(libtool, |
|---|
| … | … | |
| 331 | 340 | ]) |
|---|
| 332 | 341 | AM_CONDITIONAL(USE_LIBTOOL, [test "x${enable_libtool}" != "xno"] ) |
|---|
| | 342 | |
|---|
| | 343 | lt_cv_deplibs_check_method=pass_all |
|---|
| 333 | 344 | |
|---|
| 334 | 345 | |
|---|
| … | … | |
| 5943 | 5954 | dnl Pic and shared libvlc stuff |
|---|
| 5944 | 5955 | dnl |
|---|
| 5945 | | AS_IF([test "${SYS}" = "mingw32" || test "${enable_libtool}" != "no"], [ |
|---|
| | 5956 | AS_IF([test "${enable_libtool}" != "no"], [ |
|---|
| 5946 | 5957 | AC_DEFINE(HAVE_SHARED_LIBVLC, 1, [Define to 1 if libvlc is built as a shared library.]) |
|---|
| 5947 | 5958 | VLC_ADD_PLUGINS([${BUILTINS}]) |
|---|
| 5948 | 5959 | AS_IF([test "${SYS}" = "mingw32"], [ |
|---|
| 5949 | 5960 | FILE_LIBVLC_DLL="!define LIBVLC_DLL libvlc.dll" |
|---|
| 5950 | | VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT]) |
|---|
| 5951 | 5961 | ]) |
|---|
| 5952 | 5962 | BUILTINS="" |
|---|
| … | … | |
| 5954 | 5964 | LDFLAGS_vlc="${LDFLAGS_vlc} ${LDFLAGS_libvlc}" |
|---|
| 5955 | 5965 | FILE_LIBVLC_DLL="" |
|---|
| | 5966 | VLC_ADD_CPPFLAGS([libvlc],[-DDLL_EXPORT]) |
|---|
| 5956 | 5967 | ]) |
|---|
| 5957 | 5968 | |
|---|