From 033a67e739dd9074a6d55d10f7db8662b4270552 Mon Sep 17 00:00:00 2001 From: Rich Prohaska <prohaska@tokutek.com> Date: Tue, 16 Apr 2013 23:57:29 -0400 Subject: [PATCH] add a rule to run -ipo-c for a windows release build. addresses #1032 git-svn-id: file:///svn/toku/tokudb.1032b@8038 c7de825b-a66e-492c-adef-691d508d4ae1 --- newbrt/Makefile | 2 +- src/Makefile | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/newbrt/Makefile b/newbrt/Makefile index 5b5f8ec5bc..aeaba2e580 100644 --- a/newbrt/Makefile +++ b/newbrt/Makefile @@ -66,7 +66,7 @@ TEST_NEWBRT = brt-test-helpers.$(OEXT) BRT_C_FILES = $(patsubst %,%.c,$(BRT_SOURCES)) BRT_O_FILES = $(patsubst %,%.$(OEXT),$(BRT_SOURCES)) -newbrt.o: $(BRT_C_FILES) $(DEPEND_COMPILE) +newbrt.$(OEXT): $(BRT_C_FILES) $(DEPEND_COMPILE) $(MAYBEATSIGN)$(CC) $(BRT_C_FILES) $(COMBINE_C) $(O_FROM_C_FLAGS) diff --git a/src/Makefile b/src/Makefile index 9000c39722..98224ea98d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -92,7 +92,14 @@ $(TLIBRARY_S): $(TLIBRARY) ; endif static_libtokudb.lib: $(YDB) $(LOCKTREE) $(RANGETREE) $(NEWBRT) $(LIBPORTABILITY) - lib /out:$@ $^ + xilib /out:$@ $^ + +ipo_libtokudb.obj: $(YDB) $(LOCKTREE) $(RANGETREE) $(NEWBRT) $(LIBPORTABILITY) + $(CC) -Qipo-c *.obj lock_tree/*.obj range_tree/*.obj ../newbrt/*.obj ../windows/*.obj + mv ipo_out.obj $@ + +ipo_libtokudb.lib: ipo_libtokudb.obj + xilib /out:$@ $^ check_globals: $(LIBNAME).$(AEXT) -- 2.30.9