diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-31 00:49:27 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-31 03:20:18 +0100 |
commit | d9a52277df06d656564b28e456adabbee52e8c10 (patch) | |
tree | b4ffb2c8dbb3ecef708220826548850c68434f3b /make/template | |
parent | abbf70b2a35edaf17631e43027828011296924ad (diff) |
Remove support for static modules.
This has been frequently broken in the past and as far as I know is
used by literally nobody.
Also, even if all modules are compiled into the core any libraries
linked against are and have always been linked dynamically making
this unusable on platforms without dynamic libraries.
Diffstat (limited to 'make/template')
-rw-r--r-- | make/template/main.mk | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/make/template/main.mk b/make/template/main.mk index 447d64b3b..071e5da73 100644 --- a/make/template/main.mk +++ b/make/template/main.mk @@ -120,10 +120,6 @@ ifndef INSPIRCD_VERBOSE MAKEFLAGS += --silent endif -ifdef INSPIRCD_STATIC - CORECXXFLAGS += -DINSPIRCD_STATIC -endif - # Append any flags set in the environment after the base flags so # that they can be overridden if necessary. CORECXXFLAGS += $(CPPFLAGS) $(CXXFLAGS) @@ -134,7 +130,6 @@ export BUILDPATH export CORECXXFLAGS export CORELDFLAGS export CXX -export INSPIRCD_STATIC export INSPIRCD_VERBOSE export LDLIBS export PICLDFLAGS @@ -178,10 +173,6 @@ debug-header: @echo "*************************************" mod-header: -ifdef INSPIRCD_STATIC - @echo 'Cannot build specific targets in pure-static build' - @exit 1 -endif @echo 'Building specific targets:' mod-footer: target @@ -227,9 +218,7 @@ install: target @-$(INSTALL) -d -m $(INSTMODE_DIR) $(MODPATH) @-$(INSTALL) -d -m $(INSTMODE_DIR) $(SCRPATH) [ "$(BUILDPATH)/bin/" -ef $(BINPATH) ] || $(INSTALL) -m $(INSTMODE_BIN) "$(BUILDPATH)/bin/inspircd" $(BINPATH) -ifndef INSPIRCD_STATIC [ "$(BUILDPATH)/modules/" -ef $(MODPATH) ] || $(INSTALL) -m $(INSTMODE_LIB) "$(BUILDPATH)/modules/"*.so $(MODPATH) -endif -$(INSTALL) -m $(INSTMODE_BIN) @CONFIGURE_DIRECTORY@/inspircd $(SCRPATH) 2>/dev/null -$(INSTALL) -m $(INSTMODE_LIB) .gdbargs $(SCRPATH)/.gdbargs 2>/dev/null ifeq ($(SYSTEM), darwin) |