X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Makefile;h=a80f4ca195d744ecf90eb0d30a1bf73cf7729f7a;hb=cdcac5cf0e9262105e676874d11c4639a80574eb;hp=992a9b846a0aed9555dd4246857b605676435492;hpb=d48a9799a3d3cbe3c41658d6e41d6791b33e926c;p=fio.git diff --git a/Makefile b/Makefile index 992a9b84..a80f4ca1 100644 --- a/Makefile +++ b/Makefile @@ -43,12 +43,12 @@ endif ifeq ($(UNAME), AIX) SOURCE += fifo.c helpers.c lib/getopt_long.c engines/posixaio.c LIBS += -lpthread -ldl -lrt - CFLAGS += -rdynamic CPPFLAGS += -D_LARGE_FILES -D__ppc__ + LDFLAGS += -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000 endif ifeq ($(UNAME), HP-UX) SOURCE += fifo.c helpers.c lib/getopt_long.c lib/strsep.c engines/posixaio.c - LIBS += -lpthread -dl -lrt + LIBS += -lpthread -ldl -lrt CFLAGS += -D_LARGEFILE64_SOURCE endif ifeq ($(UNAME), Darwin) @@ -57,7 +57,8 @@ ifeq ($(UNAME), Darwin) endif ifneq (,$(findstring CYGWIN,$(UNAME))) SOURCE += engines/windowsaio.c - LIBS += -lpthread -lrt + LIBS += -lpthread -lrt -lpsapi + CFLAGS += -DPSAPI_VERSION=1 endif OBJS = $(SOURCE:.c=.o) @@ -80,7 +81,7 @@ all: .depend $(PROGS) $(SCRIPTS) $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(CPPFLAGS) $< fio: $(OBJS) - $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) + $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(LDFLAGS) .depend: $(SOURCE) $(QUIET_DEP)$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SOURCE) 1> .depend