conmon,pause: strip binary only if non-distro build

strip binaries only if $DISTRO_BUILD isn't defined

rpmbuild handles binary stripping automagically, so running the strip
command via Makefile isn't any use to distro packages.

With this commit, the rpm specfile can use
`DISTRO_BUILD=1 make conmon pause` to generate unstripped binaries.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2017-11-06 16:27:25 -05:00
parent 6b6d634cfc
commit 0385e9d3d2
No known key found for this signature in database
GPG key ID: 1C1EDD7CC7C3A0DD
2 changed files with 5 additions and 0 deletions

View file

@ -6,6 +6,9 @@ override CFLAGS += -std=c99 -Os -Wall -Wextra $(shell pkg-config --cflags glib-2
conmon: $(obj) conmon: $(obj)
$(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS) $(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS)
ifndef DISTRO_BUILD
strip ../bin/$@
endif
.PHONY: clean .PHONY: clean
clean: clean:

View file

@ -6,7 +6,9 @@ override CFLAGS += -std=c99 -Os -Wall -Wextra -static
pause: $(obj) pause: $(obj)
$(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS) $(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS)
ifndef DISTRO_BUILD
strip ../bin/$@ strip ../bin/$@
endif
.PHONY: clean .PHONY: clean
clean: clean: