Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0e1903

Browse files
committed
MinGW: Include .dll extension in .def file LIBRARY commands.
Newer toolchains append the extension implicitly if missing, butbuildfarm member narwhal (gcc 3.4.2, ld 2.15.91 20040904) does not.This affects most core libraries having an exports.txt file, namelylibpq and the ECPG support libraries. On Windows Server 2003, WindowsAPI functions that load and unload DLLs internally will mistakenlyunload a libpq whose DLL header reports "LIBPQ" instead of "LIBPQ.dll".When, subsequently, control would return to libpq, the backend crashes.Back-patch to 9.4, like commit846e91e.Before that commit, we used a different linking technique that yielded"libpq.dll" in the DLL header.Commit53566fc worked around this byeliminating a call to a function that loads and unloads DLLs internally.That commit is no longer necessary for correctness, but its improvingconsistency with the MSVC build remains valid.
1 parent7f609a1 commitc0e1903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Makefile.shlib

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,13 @@ UC_NAME = $(shell echo $(NAME) | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMN
423423

424424
lib$(NAME)dll.def: $(SHLIB_EXPORTS)
425425
echo '; DEF file for MS VC++' >$@
426-
echo 'LIBRARY LIB$(UC_NAME)' >>$@
426+
echo 'LIBRARY LIB$(UC_NAME).dll' >>$@
427427
echo 'EXPORTS' >>$@
428428
sed -e '/^#/d' -e 's/^\(.*[ ]\)\([0-9][0-9]*\)/ \1@ \2/' $< >>$@
429429

430430
lib$(NAME)ddll.def: $(SHLIB_EXPORTS)
431431
echo '; DEF file for MS VC++' >$@
432-
echo 'LIBRARY LIB$(UC_NAME)D' >>$@
432+
echo 'LIBRARY LIB$(UC_NAME)D.dll' >>$@
433433
echo 'EXPORTS' >>$@
434434
sed -e '/^#/d' -e 's/^\(.*[ ]\)\([0-9][0-9]*\)/ \1@ \2/' $< >>$@
435435

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp