develooper Front page | perl.perl5.porters | Postings from August 2009

Move dl_win32.xs from win32 folder? [was: RE: Smoke [5.11.0] blead-1964-g2adbc9b FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)]

Thread Previous | Thread Next
From:
Steve Hay
Date:
August 28, 2009 06:28
Subject:
Move dl_win32.xs from win32 folder? [was: RE: Smoke [5.11.0] blead-1964-g2adbc9b FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)]
Message ID:
1B32FF956ABF414C9BCE5E487A1497E7041C408E@ukmail02.planit.group
Nicholas Clark wrote on 2009-08-28:
> win32/dl_win32.xs dates from 1997.
> 
> [Also, why is dl_win32.xs there, rather than in ext/DynaLoader?]

Not sure. It gets copied into ext/DynaLoader during the build:

$(DYNALOADER).c: $(MINIPERL) $(EXTDIR)\DynaLoader\dl_win32.xs
$(CONFIGPM)
	if not exist $(AUTODIR) mkdir $(AUTODIR)
	cd $(EXTDIR)\$(*B)
	..\$(MINIPERL) -I..\..\lib $(*B)_pm.PL
	..\$(MINIPERL) -I..\..\lib XSLoader_pm.PL
	cd ..\..\win32
	$(XCOPY) $(EXTDIR)\$(*B)\$(*B).pm $(LIBDIR)\$(NULL)
	$(XCOPY) $(EXTDIR)\$(*B)\XSLoader.pm $(LIBDIR)\$(NULL)
	cd $(EXTDIR)\$(*B)
	$(XSUBPP) dl_win32.xs > $(*B).c
	cd ..\..\win32

$(EXTDIR)\DynaLoader\dl_win32.xs: dl_win32.xs
	copy dl_win32.xs $(EXTDIR)\DynaLoader\dl_win32.xs

I don't know why we don't just have the dl_win32.xs file in
ext/DynaLoader to start with, and remove it from win32/

I think that would be worth doing unless anyone knows why it needs to be
under win32/

(And likewise for dl_netware.xs.)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About