mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
Don't build the lib when making static binaries
Without this, building on 64-bit systems will fail.
This commit is contained in:
parent
e5c2022f71
commit
e4cc15d19e
2
Makefile
2
Makefile
@ -44,7 +44,9 @@ $(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC))
|
|||||||
$(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS)
|
$(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS)
|
||||||
|
|
||||||
$(SHLIB): $(patsubst %.cpp,obj/%.o,$(LIB_SRC))
|
$(SHLIB): $(patsubst %.cpp,obj/%.o,$(LIB_SRC))
|
||||||
|
ifneq ($(USE_STATIC),yes)
|
||||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -shared -o $@ $^
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -shared -o $@ $^
|
||||||
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -fr obj $(I2PD) $(SHLIB)
|
rm -fr obj $(I2PD) $(SHLIB)
|
||||||
|
Loading…
Reference in New Issue
Block a user