From: Andre Noll Date: Sun, 12 May 2024 01:44:58 +0000 (+0200) Subject: Provide a static binary. X-Git-Tag: v1.0.2~2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=fee3c05ceef345f76fbe371faf84ba7928abf95a;p=dss.git Provide a static binary. For users which can't be bothered to use git or compile from source. --- diff --git a/Makefile b/Makefile index df56e48..db23289 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ c_generated := $(B)/$(PACKAGE).lsg $(B)/version objs := $(addsuffix .o, $(c_generated) $(addprefix $(B)/, $(c_source))) deps := $(objs:.o=.d) all := $(PACKAGE) $(PACKAGE).1.gz -www := $(B)/index.html $(B)/$(PACKAGE).1.html +www := $(B)/index.html $(B)/$(PACKAGE).1.html $(B)/$(PACKAGE) all: $(all) www: $(www) @@ -45,6 +45,7 @@ DSS_CFLAGS += -Wshadow CC_CMD = $(CC) -c -o $@ $(DSS_CPPFLAGS) $(CPPFLAGS) $(DSS_CFLAGS) $(CFLAGS) \ -MMD -MF $(B)/$(*F).d -MT $@ $< +LD_CMD = $(CC) -o $@ $(objs) $(LDFLAGS) -llopsub .ONESHELL: .SHELLFLAGS := -ec @@ -58,7 +59,11 @@ $(B)/version.c: ./version-gen.sh $(PACKAGE) version.c > /dev/null $(PACKAGE): $(objs) $(call SAY, LD $@) - $(CC) -o $@ $(objs) $(LDFLAGS) -llopsub + $(LD_CMD) +$(B)/$(PACKAGE): $(objs) + $(call SAY, LD $@) + $(LD_CMD) -static + strip $@ $(B)/%.o: $(B)/%.c $(call SAY, CC $<) $(CC_CMD) diff --git a/index.html.m4 b/index.html.m4 index 52a424c..849e203 100644 --- a/index.html.m4 +++ b/index.html.m4 @@ -36,8 +36,13 @@ dnl SPDX-License-Identifier: GPL-2.0

Installation

-

To install the dependencies, run apt-get install gcc rsync - liblopsub-dev m4.

+

The easiest way to install PACKAGE() is to download and run + this pre-compiled static binary for x86. It + should work fine on all Linux distributions but it won't work on arm + systems.

+ +

To install from source, you first need to install the dependencies: + apt-get install gcc rsync liblopsub-dev m4.

To download the source code, run git clone CLONE_URL(), or grab a current tarball from the