Skip to content

Commit

Permalink
win32: Use -shared option instead of -mdll to create DLL
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 authored and jkeenan committed Jul 12, 2021
1 parent befee8d commit 65eeb6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion win32/GNUmakefile
Expand Up @@ -1598,7 +1598,7 @@ endif

$(PERLDLL): $(PERLEXPLIB) $(PERLDLL_OBJ) $(PERLDLL_RES) Extensions_static
ifeq ($(CCTYPE),GCC)
$(LINK32) -mdll -o $@ $(BLINK_FLAGS) \
$(LINK32) -shared -o $@ $(BLINK_FLAGS) \
$(PERLDLL_OBJ) $(shell type Extensions_static) $(LIBFILES) $(PERLEXPLIB)
else
$(LINK32) -dll -out:$@ $(BLINK_FLAGS) \
Expand Down
2 changes: 1 addition & 1 deletion win32/config.gc
Expand Up @@ -860,7 +860,7 @@ ivtype='long'
known_extensions='~static_ext~ ~dynamic_ext~ ~nonxs_ext~'
ksh=''
ld='~ARCHPREFIX~g++'
lddlflags='-mdll ~LINK_FLAGS~'
lddlflags='-shared ~LINK_FLAGS~'
ldflags='~LINK_FLAGS~'
ldflags_uselargefiles=''
ldlibpthname=''
Expand Down

0 comments on commit 65eeb6e

Please sign in to comment.