]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make atomic_incs.c build on Mac.
authorNicholas Nethercote <njn@valgrind.org>
Sun, 12 Jul 2009 22:58:26 +0000 (22:58 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sun, 12 Jul 2009 22:58:26 +0000 (22:58 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10435

memcheck/tests/Makefile.am
memcheck/tests/atomic_incs.c

index 212ca0f43248f6ad4abe2481edff1d802058e017..250380974d11068abc587b95be9e2d163e477e12 100644 (file)
@@ -235,6 +235,10 @@ check_PROGRAMS = \
 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
 
+if VGCONF_OS_IS_DARWIN
+atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
+endif
+
 deep_templates_SOURCES = deep_templates.cpp
 deep_templates_CXXFLAGS        = $(AM_CFLAGS) -O -gstabs
 
index a9b71e8375e81146e73d13bf84bebd3e36a00280..94af43457a48d2c10babf0022c77cdf4cce49a5a 100644 (file)
@@ -11,7 +11,7 @@
 #include <assert.h>
 #include <unistd.h>
 #include <sys/wait.h>
-#include <sys/mman.h>
+#include "tests/sys_mman.h"
 
 #define NNN 3456987