Changeset ba98f2bd51b7e1f7a7f5ca69807774894fd05e30
- Timestamp:
- 08/18/06 17:10:21
(2 years ago)
- Author:
- Damien Fouilleul <damienf@videolan.org>
- git-committer:
- Damien Fouilleul <damienf@videolan.org> 1155913821 +0000
- git-parent:
[0307453712f8bac7bd6940cc21e211df0334fdec]
- git-author:
- Damien Fouilleul <damienf@videolan.org> 1155913821 +0000
- Message:
- fixed Cygwin issue when linking/building shared libvlc.dll
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf15c486 |
rba98f2b |
|
| 217 | 217 | |
|---|
| 218 | 218 | if BUILD_SHARED |
|---|
| 219 | | LIBVLC = \$(top_builddir)/src/libvlc\$(LIBEXT) |
|---|
| | 219 | LIBVLC = -L\$(top_builddir)/src -lvlc |
|---|
| 220 | 220 | LIBADD = \$(LIBVLC) |
|---|
| 221 | 221 | endif |
|---|
| r7b006d7 |
rba98f2b |
|
| 191 | 191 | if HAVE_WIN32 |
|---|
| 192 | 192 | if BUILD_SHARED |
|---|
| 193 | | DATA_noinst_libvlc = libvlc$(LIBEXT) |
|---|
| | 193 | DATA_noinst_libvlc = libvlc$(LIBEXT) libvlc$(LIBEXT).a |
|---|
| 194 | 194 | endif |
|---|
| 195 | 195 | |
|---|
| 196 | 196 | libvlc.dll.a: libvlc$(LIBEXT) |
|---|
| | 197 | $(DLLTOOL) --export-all-symbols -l $@ -D $< $(libvlc_a_OBJECTS) |
|---|
| 197 | 198 | |
|---|
| 198 | 199 | libvlc$(LIBEXT): $(OBJECTS_libvlc_so) stamp-builtins |
|---|
| … | … | |
| 205 | 206 | echo $$ld $(OBJECTS_libvlc_so) $(LDFLAGS_libvlc_so) $$ldfl; \ |
|---|
| 206 | 207 | $$ld $(libvlc_a_OBJECTS) \ |
|---|
| 207 | | -Wl,--out-implib,$(top_builddir)/src/libvlc.dll.a $$ldfl |
|---|
| | 208 | $$ldfl |
|---|
| 208 | 209 | # It sucks big time, but we have to do that to link vlc properly |
|---|
| 209 | 210 | # on non-PIC OSes, otherwise ld will favor builtins-less libvlc.a over |
|---|
| 210 | 211 | # libvlc$(LIBEXT) |
|---|
| 211 | 212 | rm -f libvlc.a |
|---|
| 212 | | # Cygwin work-around |
|---|
| | 213 | # Cygwin libtool work-around |
|---|
| 213 | 214 | @if test -f "$@.exe"; then mv -f "$@.exe" "$@"; fi |
|---|
| 214 | 215 | endif |
|---|