Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alpine linux build step #1

Open
carlvine500 opened this issue Apr 19, 2023 · 1 comment
Open

alpine linux build step #1

carlvine500 opened this issue Apr 19, 2023 · 1 comment

Comments

@carlvine500
Copy link

carlvine500 commented Apr 19, 2023

docker run -it -v$(pwd):/tmp --rm alpine:3.15 sh   
echo "https://mirrors.aliyun.com/alpine/v3.15/main/" > /etc/apk/repositories \
    && echo "https://mirrors.aliyun.com/alpine/v3.15/community/" >> /etc/apk/repositories \
    && apk update ;

apk add gettext-dev pcre-dev g++ gcc make glib-static
wget https://codeload.github.com/abbat/timegrep/zip/refs/tags/v0.7 -O timegrep.zip
unzip timegrep.zip 
cd timegrep-0.7

CC=x86_64-alpine-linux-musl-gcc  USER_CFLAGS=-m64 USER_LDFLAGS='-static -lintl -Wl,-melf_x86_64' make

cp timgrep /tmp
@carlvine500
Copy link
Author

arm64:
CC=aarch64-alpine-linux-musl-gcc USER_LDFLAGS='-static -lintl -Wl,-maarch64linux' make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant