From e4cc15d19ea282f10f44d9fe99a66f85f3d608ce Mon Sep 17 00:00:00 2001 From: Kill Your TV Date: Sat, 20 Dec 2014 19:48:53 +0000 Subject: [PATCH] Don't build the lib when making static binaries Without this, building on 64-bit systems will fail. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 9fdfa4b4..62499f29 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,9 @@ $(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC)) $(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS) $(SHLIB): $(patsubst %.cpp,obj/%.o,$(LIB_SRC)) +ifneq ($(USE_STATIC),yes) $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -shared -o $@ $^ +endif clean: rm -fr obj $(I2PD) $(SHLIB)