diff options
author | Steve Hay <SteveHay@planit.com> | 2005-07-15 10:35:55 +0000 |
---|---|---|
committer | Steve Hay <SteveHay@planit.com> | 2005-07-15 10:35:55 +0000 |
commit | 322fd6428c9575b8e35cb16655e86ca0378af1cf (patch) | |
tree | c2f30ec64c9f15ed0745a19ecd68659c950f20ee /win32/perllib.c | |
parent | a44e5664a991fdadec2f1aada7ad25ce3323e639 (diff) | |
download | perl-322fd6428c9575b8e35cb16655e86ca0378af1cf.tar.gz |
Fix static extensions when building with nmake on Win32
They were broken because change 24806 forgot to add -DWITH_STATIC
to the recipe for compiling perllib.c which meant that perllibst.h
was not included and hence although they built OK, the static
extensions could not actually be used!
In fact, since perllibst.h is always created (it is more or less
empty when static extensions are not being used), there is no need
for -DWITH_STATIC at all. So rather than adding it to Makefile,
just drop it from makefile.mk and perllib.c.
Also add the missing cleanup of perllibst.h to Makefile.
p4raw-id: //depot/perl@25150
Diffstat (limited to 'win32/perllib.c')
-rw-r--r-- | win32/perllib.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/win32/perllib.c b/win32/perllib.c index 5bd7ee83d7..3acfca1204 100644 --- a/win32/perllib.c +++ b/win32/perllib.c @@ -17,19 +17,15 @@ char *staticlinkmodules[] = { "DynaLoader", /* other similar records will be included from "perllibst.h" */ -#ifdef WITH_STATIC #define STATIC1 #include "perllibst.h" -#endif NULL, }; EXTERN_C void boot_DynaLoader (pTHX_ CV* cv); /* other similar records will be included from "perllibst.h" */ -#ifdef WITH_STATIC #define STATIC2 #include "perllibst.h" -#endif static void xs_init(pTHX) @@ -38,10 +34,8 @@ xs_init(pTHX) dXSUB_SYS; newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); /* other similar records will be included from "perllibst.h" */ -#ifdef WITH_STATIC #define STATIC3 #include "perllibst.h" -#endif } #ifdef PERL_IMPLICIT_SYS |