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:
parent
6b6d634cfc
commit
0385e9d3d2
2 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,9 @@ override CFLAGS += -std=c99 -Os -Wall -Wextra $(shell pkg-config --cflags glib-2
|
|||
|
||||
conmon: $(obj)
|
||||
$(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS)
|
||||
ifndef DISTRO_BUILD
|
||||
strip ../bin/$@
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
|
@ -6,7 +6,9 @@ override CFLAGS += -std=c99 -Os -Wall -Wextra -static
|
|||
|
||||
pause: $(obj)
|
||||
$(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS)
|
||||
ifndef DISTRO_BUILD
|
||||
strip ../bin/$@
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue