From 77c0cde116f8781d57571fd29a59c6346c532b9d Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 8 Dec 2015 00:24:53 +0000 Subject: [PATCH] build: add -D_FILE_OFFSET_BITS=64 to _CPPFLAGS instead of _CFLAGS * tests/Makefile.am (fstat64_CFLAGS): Rename to fstat64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (fstatat64_CFLAGS): Rename to fstatat64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (ftruncate64_CFLAGS): Rename to ftruncate64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (lstat64_CFLAGS): Rename to lstat64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (mmap64_CFLAGS): Rename to mmap64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (newfstatat_CFLAGS): Rename to newfstatat_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (stat64_CFLAGS): Rename to stat64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (statfs_CFLAGS): Rename to statfs_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (truncate64_CFLAGS): Rename to truncate64_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). (uio_CFLAGS): Rename to uio_CPPFLAGS, replace $(AM_CFLAGS) with $(AM_CPPFLAGS). --- tests/Makefile.am | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index f0deb600..6f25b3f0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -116,19 +116,19 @@ check_PROGRAMS = \ clock_xettime_LDADD = -lrt filter_unavailable_LDADD = -lpthread -fstat64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 -fstatat64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 -ftruncate64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 -lstat64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 -mmap64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 +fstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 +fstatat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 +ftruncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 +lstat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 +mmap64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 mq_LDADD = -lrt -newfstatat_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 +newfstatat_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 pc_LDADD = $(dl_LIBS) -stat64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 -statfs_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 +stat64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 +statfs_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 times_LDADD = -lrt -truncate64_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 -uio_CFLAGS = $(AM_CFLAGS) -D_FILE_OFFSET_BITS=64 +truncate64_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 +uio_CPPFLAGS = $(AM_CPPFLAGS) -D_FILE_OFFSET_BITS=64 stack_fcall_SOURCES = stack-fcall.c \ stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c