develooper Front page | perl.perl5.porters | Postings from January 2001

[PATCH: perl@8429] Win32 Makefile fixes

Thread Next
From:
Indy Singh
Date:
January 15, 2001 17:58
Subject:
[PATCH: perl@8429] Win32 Makefile fixes
Message ID:
07be01c07f5f$fdadf270$d24b7018@cr637287a
The enclosed patch contains the following changes to the Win32 Makefile

1) Changed default compiler options to release instead of debug.
2) Changed default compile flags to generate binary compatible code with
existiting Win32 module repositories.

Note 1:
The default compiler options were set to generate debug (-Od) code unless
one manually changed the Makefile to uncomment the #CCTYPE=MSVC60.  If you
were using MSVC50 then you were stuck with debug code.

For users using older compilers, including MSVC50-with-no-service-pack there
is an option to use the -Od option as before.

The DLL file size is 340KB smaller.

Note2:
The default options did not allow the use of pre-built binary modules from
several repositories including ActiveState.  This change also enables fork
emulation in Win32.

================================================
Indy Singh
NuSphere MySQL  --  www.nusphere.com
================================================


--- Makefile.orig Fri Jan 12 21:12:44 2001
+++ Makefile Tue Jan 09 17:35:08 2001
@@ -31,7 +31,7 @@
 # versioned installation can be obtained by setting INST_TOP above to a
 # path that includes an arbitrary version string.
 #
-INST_VER = \5.7.0
+#INST_VER = \5.7.0

 #
 # Comment this out if you DON'T want your perl installation to have
@@ -42,27 +42,27 @@
 # the same location.  Commenting it out gives you a simpler
 # installation that is easier to understand for beginners.
 #
-INST_ARCH = \$(ARCHNAME)
+#INST_ARCH = \$(ARCHNAME)

 #
 # uncomment to enable multiple interpreters.  This is need for fork()
 # emulation.
 #
-#USE_MULTI = define
+USE_MULTI = define

 #
 # Beginnings of interpreter cloning/threads; still very incomplete.
 # This should be enabled to get the fork() emulation.  This needs
 # USE_MULTI as well.
 #
-#USE_ITHREADS = define
+USE_ITHREADS = define

 #
 # uncomment to enable the implicit "host" layer for all system calls
 # made by perl.  This needs USE_MULTI above.  This is also needed to
 # get fork().
 #
-#USE_IMP_SYS = define
+USE_IMP_SYS = define

 #
 # uncomment to enable the experimental PerlIO I/O subsystem.
@@ -304,12 +304,6 @@
 # VC 6.0 can load the socket dll on demand.  Makes the test suite
 # run in about 10% less time.
 DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayimp.lib
-
-# VC 6.0 seems capable of compiling perl correctly with optimizations
-# enabled.  Anything earlier fails tests.
-!IF "$(CFG)" == ""
-CFG  = Optimize
-!ENDIF
 !ENDIF

 ARCHDIR  = ..\lib\$(ARCHNAME)
@@ -366,13 +360,9 @@
 !  ENDIF
 LINK_DBG = -debug -pdb:none
 !ELSE
-!  IF  "$(CFG)" == "Optimize"
 # -O1 yields smaller code, which turns out to be faster than -O2
 #OPTIMIZE = -O2 -MD -DNDEBUG
 OPTIMIZE = -O1 -MD -DNDEBUG
-!  ELSE
-OPTIMIZE = -Od -MD -DNDEBUG
-!  ENDIF
 LINK_DBG = -release
 !ENDIF





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