Skip to content

Commit

Permalink
Add README, print arch to dist pkg, optimize for size
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Apr 5, 2024
1 parent 61ea329 commit 69f6497
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MD5SUM=md5sum -b
TAR=tar
INSTALL_ROOT=/usr/local

CFLAGS=-Wall -Werror -pedantic -std=c89 -fPIC -fmax-errors=1 -DPROJECT_VERSION=$(PROJECT_VERSION) -D_POSIX_C_SOURCE=200112L
CFLAGS=-Wall -Werror -pedantic -std=c89 -fPIC -Os -fmax-errors=1 -DPROJECT_VERSION=$(PROJECT_VERSION) -D_POSIX_C_SOURCE=200112L

LDFLAGS=-Wl,-s,--as-needed,--gc-sections,-pie

Expand Down Expand Up @@ -47,6 +47,7 @@ dist/getaddrinfo-$(PROJECT_VERSION)+$(ARCH).tgz: build/bin/getaddrinfo
$(MKDIR_P) "$(shell dirname "$@")" build/tar build/tar/bin
$(COPYTO) build/tar/bin/. build/bin/getaddrinfo
echo "version=$(PROJECT_VERSION)" > build/tar/METADATA.INI
echo "arch=$(ARCH)" >> build/tar/METADATA.INI
echo "builtAt=$(shell date -u +%Y-%m-%dT%H:%M:%SZ)" >> build/tar/METADATA.INI
$(TAR) --owner=0 --group=0 -czf "$@" -C build/tar METADATA.INI bin/getaddrinfo

Expand Down
7 changes: 7 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

getaddrinfo-cli
===============

Simple commandline frontend to getaddrinfo
(https://pubs.opengroup.org/onlinepubs/9699919799/functions/getaddrinfo.html).

0 comments on commit 69f6497

Please sign in to comment.