Commit 61856756 authored by Philip Carns's avatar Philip Carns

remove largefile cflags from utility builds, working aroung a libz bug on

bgp login nodes


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@138 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 320a3a9f
......@@ -17,7 +17,11 @@ darshan_lib_path = @darshan_lib_path@
cp_zlib_link_flags = @__CP_ZLIB_LINK_FLAGS@
cp_zlib_include_flags = @__CP_ZLIB_INCLUDE_FLAGS@
CFLAGS = -I . -I $(srcdir) @CFLAGS@ @CPPFLAGS@ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall
# deliberately avoid large file support for host side utilities to avoid
# potentially buggy libz 64 bit offset support
CFLAGS = -I . -I $(srcdir) @CFLAGS@ @CPPFLAGS@ -Wall
CFLAGS_MPI = -I . -I $(srcdir) @CFLAGS@ @CPPFLAGS@ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Wall
CC=@MPICC@
LD=@MPICC@
......@@ -56,20 +60,22 @@ test/gz-bench: test/gz-bench.c mktestdir
gcc $(CFLAGS) -lz $< -o $@
lib/darshan-mpi-io.o: lib/darshan-mpi-io.c darshan.h darshan-log-format.h mklibdir
$(CC) $(cp_zlib_include_flags) $(CFLAGS) -c $< -o $@
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-pnetcdf.o: lib/darshan-pnetcdf.c darshan.h darshan-log-format.h mklibdir
$(CC) $(cp_zlib_include_flags) $(CFLAGS) -c $< -o $@
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-hdf5.o: lib/darshan-hdf5.c darshan.h darshan-log-format.h mklibdir
$(CC) $(cp_zlib_include_flags) $(CFLAGS) -c $< -o $@
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lib/darshan-posix.o: lib/darshan-posix.c darshan.h darshan-log-format.h mklibdir
$(CC) $(cp_zlib_include_flags) $(CFLAGS) -c $< -o $@
$(CC) $(cp_zlib_include_flags) $(CFLAGS_MPI) -c $< -o $@
lookup3.o: lookup3.c
lib/lookup3.o: lib/lookup3.c
$(CC) $(CFLAGS_MPI) -c $< -o $@
lookup8.o: lookup8.c
lib/lookup8.o: lib/lookup8.c
$(CC) $(CFLAGS_MPI) -c $< -o $@
lib/libdarshan-mpi-io.a: lib/darshan-mpi-io.o lib/darshan-pnetcdf.o lib/darshan-hdf5.o
ar rcs $@ $^
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment