Skip to content

Commit 3239af9

Browse files
committed
Win32: Make object files in the same place as the DLLs
1 parent 1a22281 commit 3239af9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

win32/Makefile.sub

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,9 +1489,8 @@ rubyspec-capiext: $(RUBYSPEC_CAPIEXT_EXTS)
14891489
{$(RUBYSPEC_CAPIEXT_SRCDIR)}.c{$(RUBYSPEC_CAPIEXT)}.so:
14901490
$(ECHO) building $(@F)
14911491
$(Q)$(MAKEDIRS) $(@D)
1492-
$(Q)echo> $*.def EXPORTS
1493-
$(Q)echo>> $*.def Init_$(*F)
1494-
$(Q)$(LDSHARED) -Fe$(@) $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $< $(LIBRUBYARG) -link $(DLDFLAGS) $(XLDFLAGS) $(LIBS) $(LOCAL_LIBS) -implib:$*.lib -pdb:$*.pdb -def:$*.def
1492+
$(Q)(echo EXPORTS&&echo Init_$(*F))> $*.def
1493+
$(Q)$(LDSHARED) -Fe$(@) -Fo$(*).obj $(INCFLAGS) $(CFLAGS) $(CPPFLAGS) $< $(LIBRUBYARG) -link $(DLDFLAGS) $(XLDFLAGS) $(LIBS) $(LOCAL_LIBS) -implib:$*.lib -pdb:$*.pdb -def:$*.def
14951494
!if defined(LDSHARED_0)
14961495
$(Q)$(LDSHARED_0)
14971496
$(Q)$(LDSHARED_1)

0 commit comments

Comments
 (0)