Enable flags only for 3.4.3, should fix the build for people with
versions below. Disabled on 4.0 since they are automatic
Modified: trunk/reactos/tools/helper.mk
_____
Modified: trunk/reactos/tools/helper.mk
--- trunk/reactos/tools/helper.mk 2005-04-26 09:40:30 UTC (rev
14813)
+++ trunk/reactos/tools/helper.mk 2005-04-26 12:35:32 UTC (rev
14814)
@@ -255,6 +255,8 @@
MK_BOOTCDDIR := .
MK_DISTDIR := drivers
MK_RES_BASE := $(TARGET_NAME)
+ MK_LFLAGS := -Wl,--file-alignment,0x1000 \
+ -Wl,--section-alignment,0x1000
endif
ifeq ($(TARGET_TYPE),export_driver)
@@ -295,6 +297,8 @@
MK_RES_BASE := $(TARGET_NAME)
MK_INSTALL_BASENAME := hal
MK_INSTALL_FULLNAME := hal.dll
+ MK_LFLAGS := -Wl,--file-alignment,0x1000 \
+ -Wl,--section-alignment,0x1000
ifeq ($(TARGET_BOOTSTRAP),yes)
TARGET_BOOTSTRAP_NAME := hal.dll
else
@@ -316,6 +320,8 @@
MK_IMPLIBONLY := no
MK_IMPLIBDEFPATH :=
MK_IMPLIB_EXT := .a
+ MK_LFLAGS := -Wl,--file-alignment,0x1000 \
+ -Wl,--section-alignment,0x1000
MK_INSTALLDIR := system32
MK_BOOTCDDIR := system32
MK_DISTDIR := # FIXME
@@ -336,6 +342,8 @@
MK_IMPLIBDEFPATH :=
MK_IMPLIB_EXT := .a
MK_INSTALLDIR := system32/drivers
+ MK_LFLAGS := -Wl,--file-alignment,0x1000 \
+ -Wl,--section-alignment,0x1000
MK_BOOTCDDIR := .
MK_DISTDIR := drivers
MK_RES_BASE := $(TARGET_NAME)
@@ -357,6 +365,8 @@
MK_INSTALLDIR := system32
MK_BOOTCDDIR := .
MK_DISTDIR := dlls
+ MK_LFLAGS := -Wl,--file-alignment,0x1000 \
+ -Wl,--section-alignment,0x1000
MK_RES_BASE := $(TARGET_NAME)
endif
@@ -660,8 +670,13 @@
# if needed, until their problems can be found
#
ifneq ($(DBG),1)
- MK_CFLAGS += -Os -Wno-strict-aliasing -funit-at-a-time -fweb -ftracer
-momit-leaf-frame-pointer
+ MK_CFLAGS += -Os -Wno-strict-aliasing -ftracer
-momit-leaf-frame-pointer
MK_CFLAGS += -mpreferred-stack-boundary=2
+
+ CC_VERSION=$(word 1,$(shell gcc -dumpversion))
+ ifeq ($(CC_VERSION),3.4.3)
+ MK_CFLAGS += -funit-at-a-time -fweb
+ endif
#
# Remove Symbols if no debugging is used at all
Show replies by date