Skip to content

Commit

Permalink
libct/dmz: Move comment out of the Makefile rule
Browse files Browse the repository at this point in the history
Otherwise it is shown when compiling, like this:
	# We use the flags suggested in nolibc/nolibc.h, it makes the binary very small.
	gcc  -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib -lgcc -static -o runc-dmz _dmz.c
	strip -gs runc-dmz

Having it before the target is equally clear and will not be shown while
compiling.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
  • Loading branch information
rata committed Sep 26, 2023
1 parent 1a8b558 commit 9976be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcontainer/dmz/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Get CC values for cross-compilation.
include ../../cc_platform.mk

# We use the flags suggested in nolibc/nolibc.h, it makes the binary very small.
runc-dmz: _dmz.c
# We use the flags suggested in nolibc/nolibc.h, it makes the binary very small.
$(CC) $(CFLAGS) -fno-asynchronous-unwind-tables -fno-ident -s -Os -nostdlib -lgcc -static -o $@ $^
$(STRIP) -gs $@

0 comments on commit 9976be8

Please sign in to comment.