diff options
author | John Kacur <jkacur@redhat.com> | 2015-05-27 22:51:42 +0200 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2015-05-27 22:51:42 +0200 |
commit | cc0901e72d3e1a916fc97909e7c0c73264b61438 (patch) | |
tree | a05562425a5edfb47524372682c46358deb1c41b | |
parent | 3bb3cef70468dc22056e1a82d55f14cd4b6c2774 (diff) | |
download | rt-tests-cc0901e72d3e1a916fc97909e7c0c73264b61438.tar.gz |
Allow building with -DHAVE_PARSE_CPUSTRING_ALL
This is a temporary solution until we have time to look into autotools
If you know that you are building on a system that has
numa_parse_cpustring_all()
Then you can type
make HAVE_PARSE_CPUSTRING_ALL=1
to define it.
If you omit that, then the default is the old behaviour that uses
numa_parse_cpustring((char *)s)
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -22,14 +22,18 @@ srcdir ?= $(prefix)/src machinetype = $(shell $(CC) -dumpmachine | \ sed -e 's/-.*//' -e 's/i.86/i386/' -e 's/mips.*/mips/' -e 's/ppc.*/powerpc/') -ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),) -NUMA := 1 -endif CFLAGS ?= -Wall -Wno-nonnull CPPFLAGS += -D_GNU_SOURCE -Isrc/include LDFLAGS ?= +ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),) +NUMA := 1 +ifdef HAVE_PARSE_CPUSTRING_ALL + CFLAGS += -DHAVE_PARSE_CPUSTRING_ALL +endif +endif + PYLIB := $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()') ifndef DEBUG |