You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
Looks like this project is dead, but for others, this is currently broken for Android >5.0
# /data/local/ntpclient -c 1 -d -h pool.ntp.org -s
"/data/local/ntpclient": error: Android 5.0 and later only support position-independent executables (-fPIE).
I tried naively messing around with the flags in Makefile, changing the two instances of -fPIC to -fPIE, but the same error persisted.
The text was updated successfully, but these errors were encountered:
If you want to run ntpclient from adb, you can build it with musl (https://musl.cc/). Creating statically compiled binary to run on aarch64 (without using the ndk)
export MUSL=$path to aarch64-linux-musl-cross
LDFLAGS="-static -static-pie -static-libgcc -Wl,-static" CFLAGS="-static" CC=$MUSL/bin/aarch64-linux-musl-gcc make -j
Looks like this project is dead, but for others, this is currently broken for Android >5.0
I tried naively messing around with the flags in
Makefile
, changing the two instances of-fPIC
to-fPIE
, but the same error persisted.The text was updated successfully, but these errors were encountered: