mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Arch-abstraction:
- factor out different CFLAGS in Makefiles git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2829
This commit is contained in:
parent
d611af0e22
commit
8d5541b229
@ -4,7 +4,6 @@ add_includes = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/include/$(VG_ARCH)
|
||||
|
||||
AM_CPPFLAGS = $(add_includes)
|
||||
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fomit-frame-pointer \
|
||||
@PREFERRED_STACK_BOUNDARY@ -g
|
||||
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -g @ARCH_TOOL_AM_CFLAGS@
|
||||
AM_CCASFLAGS = $(add_includes)
|
||||
|
||||
|
||||
@ -68,18 +68,24 @@ AC_CANONICAL_HOST
|
||||
AC_MSG_CHECKING([for a supported CPU])
|
||||
AC_SUBST(VG_ARCH)
|
||||
AC_SUBST(KICKSTART_BASE)
|
||||
AC_SUBST(ARCH_CORE_AM_CFLAGS)
|
||||
AC_SUBST(ARCH_TOOL_AM_CFLAGS)
|
||||
|
||||
case "${host_cpu}" in
|
||||
i?86)
|
||||
AC_MSG_RESULT([ok (${host_cpu})])
|
||||
VG_ARCH="x86"
|
||||
KICKSTART_BASE="0xb0000000"
|
||||
ARCH_CORE_AM_CFLAGS="-fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@ -DELFSZ=32"
|
||||
ARCH_TOOL_AM_CFLAGS="-fomit-frame-pointer @PREFERRED_STACK_BOUNDARY@"
|
||||
;;
|
||||
|
||||
powerpc*)
|
||||
AC_MSG_RESULT([no (${host_cpu})])
|
||||
VG_ARCH="ppc"
|
||||
KICKSTART_BASE="0x70000000"
|
||||
ARCH_CORE_AM_CFLAGS="-DELFSZ=32"
|
||||
ARCH_TOOL_AM_CFLAGS="-fpic"
|
||||
AC_MSG_ERROR([PowerPC not supported. Sorry])
|
||||
;;
|
||||
|
||||
|
||||
@ -6,8 +6,7 @@ SUBDIRS = $(VG_ARCH) $(VG_PLATFORM) demangle . docs
|
||||
AM_CPPFLAGS += -DVG_LIBDIR="\"$(valdir)"\" -I$(srcdir)/demangle \
|
||||
-DKICKSTART_BASE=@KICKSTART_BASE@ \
|
||||
-DVG_PLATFORM="\"$(VG_PLATFORM)"\"
|
||||
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -fno-omit-frame-pointer \
|
||||
@PREFERRED_STACK_BOUNDARY@ -g -DELFSZ=32
|
||||
AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -O -g @ARCH_CORE_AM_CFLAGS@
|
||||
|
||||
default.supp: $(SUPP_FILES)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user