Skip to content

Commit

Permalink
TST: tentative fix rockstart compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jan 5, 2023
1 parent e0afbbe commit a59438e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rockstar-patches/cflags.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
diff --git a/Makefile b/Makefile
index 66f7e17..ed8764b 100644
index 66f7e17..debd222 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
@@ -1,7 +1,7 @@
-CFLAGS=-m64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_SVID_SOURCE -D_DARWIN_C_SOURCE -Wall -fno-math-errno -fPIC
+CFLAGS=-m64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE -Wall -fno-math-errno -fPIC
+CFLAGS=-m64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_DARWIN_C_SOURCE -Wall -fno-math-errno -fPIC -I/usr/include/tirpc
LDFLAGS=-shared
OFLAGS = -lm -O3 -std=c99
DEBUGFLAGS = -lm -g -O3 -std=c99 #-Dinline=
-DEBUGFLAGS = -lm -g -O3 -std=c99 #-Dinline=
+DEBUGFLAGS = -lm -g -O3 -std=c99 #-Dinline=
PROFFLAGS = -lm -g -pg -O2 -std=c99
CC = gcc
CFILES = rockstar.c check_syscalls.c fof.c groupies.c subhalo_metric.c potential.c nfw.c jacobi.c fun_times.c interleaving.c universe_time.c hubble.c integrate.c distance.c config_vars.c config.c bounds.c inthash.c io/read_config.c client.c server.c merger.c inet/socket.c inet/rsocket.c inet/address.c io/meta_io.c io/io_internal.c io/io_ascii.c io/stringparse.c io/io_gadget.c io/io_generic.c io/io_art.c io/io_nchilada.c io/io_tipsy.c io/io_bgc2.c io/io_util.c io/io_arepo.c io/io_hdf5.c io/io_enzo.c
diff --git a/examples/Makefile b/examples/Makefile
index caf2322..a192fe5 100644
--- a/examples/Makefile
Expand Down

0 comments on commit a59438e

Please sign in to comment.