--- solenv/inc/unxlngi4.mk.mdvarch	2006-08-08 13:38:27.000000000 +0200
+++ solenv/inc/unxlngi4.mk	2006-12-03 15:11:43.000000000 +0100
@@ -63,7 +63,10 @@
 
 # architecture dependent flags for the C and C++ compiler that can be changed by
 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
-ARCH_FLAGS*=-mcpu=pentiumpro
+ARCH_FLAGS*=-mtune=pentiumpro
+ARCH_FLAGS_CC*=$(ARCH_FLAGS)
+ARCH_FLAGS_CXX*=$(ARCH_FLAGS)
+ARCH_FLAGS_OPT*=-O1
 
 # name of C++ Compiler
 CXX*=g++
@@ -80,13 +83,13 @@
 .ENDIF
 
 # flags for the C++ Compiler
-CFLAGSCC= -pipe $(ARCH_FLAGS)
+CFLAGSCC= $(ARCH_FLAGS_CC)
 # Flags for enabling exception handling
 CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
 # Flags for disabling exception handling
 CFLAGS_NO_EXCEPTIONS=-fno-exceptions
 
-CFLAGSCXX= -pipe $(ARCH_FLAGS)
+CFLAGSCXX= $(ARCH_FLAGS_CXX)
 
 # HACK: enable Hamburg developers to build on glibc-2.2 machines but compile vs. glibc-2.1 headers
 .IF "$(BUILD_SPECIAL)"==""
@@ -114,7 +117,7 @@
 # Compiler flags for enabling optimizations
 # CFLAGSOPT=-O2
 # reduce to -O1 to avoid optimization problems
-CFLAGSOPT=-O1
+CFLAGSOPT=$(ARCH_FLAGS_OPT)
 # Compiler flags for disabling optimizations
 CFLAGSNOOPT=-O0
 # Compiler flags for describing the output path
--- solenv/inc/unxlngi5.mk.mdvarch	2006-07-06 00:02:25.000000000 +0200
+++ solenv/inc/unxlngi5.mk	2006-12-03 15:06:28.000000000 +0100
@@ -65,6 +65,13 @@
 # architecture dependent flags for the C and C++ compiler that can be changed by
 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
 ARCH_FLAGS*=-mcpu=pentiumpro
+ARCH_FLAGS_CC*=$(ARCH_FLAGS)
+ARCH_FLAGS_CXX*=$(ARCH_FLAGS)
+.IF "$(PRODUCT)"!=""
+CFLAGSOPT=-Os -fno-strict-aliasing		# optimizing for products
+.ELSE 	# "$(PRODUCT)"!=""
+CFLAGSOPT=   							# no optimizing for non products
+.ENDIF	# "$(PRODUCT)"!=""
 
 # name of C++ Compiler
 CXX*=g++
@@ -87,13 +94,13 @@
 
 
 # flags for the C++ Compiler
-CFLAGSCC= -pipe $(ARCH_FLAGS)
+CFLAGSCC= $(ARCH_FLAGS_CC)
 # Flags for enabling exception handling
 CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
 # Flags for disabling exception handling
 CFLAGS_NO_EXCEPTIONS=-fno-exceptions
 
-CFLAGSCXX= -pipe $(ARCH_FLAGS)
+CFLAGSCXX= $(ARCH_FLAGS_CXX)
 PICSWITCH:=-fpic
 
 # Compiler flags for compiling static object in single threaded environment with graphical user interface
@@ -114,11 +121,7 @@
 CFLAGSDEBUG=-g
 CFLAGSDBGUTIL=
 # Compiler flags for enabling optimizations
-.IF "$(PRODUCT)"!=""
-CFLAGSOPT=-Os -fno-strict-aliasing		# optimizing for products
-.ELSE 	# "$(PRODUCT)"!=""
-CFLAGSOPT=   							# no optimizing for non products
-.ENDIF	# "$(PRODUCT)"!=""
+CFLAGSOPT=$(ARCH_FLAGS_OPT)
 # Compiler flags for disabling optimizations
 CFLAGSNOOPT=-O0
 # Compiler flags for describing the output path
--- solenv/inc/unxlngi6.mk.mdvarch	2006-12-03 14:12:26.000000000 +0100
+++ solenv/inc/unxlngi6.mk	2006-12-03 15:07:19.000000000 +0100
@@ -65,6 +65,14 @@
 # architecture dependent flags for the C and C++ compiler that can be changed by
 # exporting the variable ARCH_FLAGS="..." in the shell, which is used to start build
 ARCH_FLAGS*=-mtune=pentiumpro
+ARCH_FLAGS_CC*=$(ARCH_FLAGS)
+ARCH_FLAGS_CXX*=$(ARCH_FLAGS)
+# Compiler flags for enabling optimizations
+.IF "$(PRODUCT)"!=""
+CFLAGSOPT=-Os -fno-strict-aliasing		# optimizing for products
+.ELSE 	# "$(PRODUCT)"!=""
+CFLAGSOPT=   							# no optimizing for non products
+.ENDIF	# "$(PRODUCT)"!=""
 
 # name of C++ Compiler
 CXX*=g++
@@ -86,14 +94,14 @@
 .ENDIF
 
 # flags for the C++ Compiler
-CFLAGSCC= -pipe $(ARCH_FLAGS)
+CFLAGSCC=$(ARCH_FLAGS_CC)
 # Flags for enabling exception handling
 CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
 # Flags for disabling exception handling
 CFLAGS_NO_EXCEPTIONS=-fno-exceptions
 
 # -fpermissive should be removed as soon as possible
-CFLAGSCXX= -pipe $(ARCH_FLAGS)
+CFLAGSCXX=$(ARCH_FLAGS_CXX)
 PICSWITCH:=-fpic
 .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
 CFLAGSCXX += -fvisibility-inlines-hidden
@@ -116,12 +124,7 @@
 # Compiler flags for debugging
 CFLAGSDEBUG=-g
 CFLAGSDBGUTIL=
-# Compiler flags for enabling optimizations
-.IF "$(PRODUCT)"!=""
-CFLAGSOPT=-Os -fno-strict-aliasing		# optimizing for products
-.ELSE 	# "$(PRODUCT)"!=""
-CFLAGSOPT=   							# no optimizing for non products
-.ENDIF	# "$(PRODUCT)"!=""
+CFLAGSOPT=$(ARCH_OPT_FLAGS)
 # Compiler flags for disabling optimizations
 CFLAGSNOOPT=-O0
 # Compiler flags for describing the output path
