Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Update hashing for 0.45.0 #155

Merged
merged 2 commits into from
Nov 12, 2016
Merged

Update hashing for 0.45.0 #155

merged 2 commits into from
Nov 12, 2016

Conversation

Noctem
Copy link
Contributor

@Noctem Noctem commented Nov 11, 2016

Update hashing libs, update hash seed and U25, standardize library naming.

Linux compilation:

gcc -O3 -fPIC -shared niahash.c -o libniantichash-linux-x86-64.so
gcc -m32 -O3 -fPIC -shared niahash.c -o libniantichash-linux-i386.so

macOS compilation:

clang -march=core2 -shared -fPIC -mmacosx-version-min=10.7 -O3 niahash.c -o libniantichash-macos-x86-64.dylib
clang -m32 -shared -fPIC -mmacosx-version-min=10.5 -O3 niahash32.c -o libniantichash-macos-i386.dylib

Windows compilation:

x86_64-w64-mingw32-gcc -O3 -fPIC -shared niahash.c -o libniantichash-windows-x86-64.dll
i686-w64-mingw32-gcc -O3 -fPIC -shared niahash32.c -o libniantichash-windows-i686.dll

FreeBSD compilation:

clang -shared -fPIC -O3 niahash.c -o libniantichash-freebsd-x86-64.so
clang -m32 -shared -fPIC -O3 niahash32.c -o libniantichash-freebsd-i386.so

ARM compilation:

aarch64-linux-gnu-gcc -O3 -fPIC -shared niahash.c -o libniantichash-linux-arm64.so
arm-linux-gnueabihf-gcc -O3 -fPIC -shared niahash32.c -o libniantichash-linux-arm32.so

I have only tested this on macOS.

Update hashing libs, update hash seed and U25, standardize library
naming.
@FrostTheFox
Copy link

I'll try to test for windows.

@popcornmix
Copy link

@FrostTheFox
Copy link

Windows is working a-ok for me 👍

Add hashing libs for FreeBSD, ARM, and 32-bit macOS/Windows.
@nullpixel
Copy link
Contributor

+1. Might need to move repo's so we can checksum them

@Noctem
Copy link
Contributor Author

Noctem commented Nov 12, 2016

@nullpixel1 Noctem/pgoapi-libs@a9a3690 is ready to go if we're doing that.

@keyphact
Copy link
Member

Will accept this as breaking change for v.0.45.0-alpha, someone will need to update refs for: https://github.com/pokelibs/pgoapi-libs

@keyphact keyphact merged commit 5f83229 into pogodevorg:master Nov 12, 2016
@baskettcase
Copy link

For CentOS 6 I needed to run this to get it to work since the supplied file used glib 2.14 which Centos 6 doesn't look like it has.

gcc -O3 -fPIC -shared -std=c99 niahash.c -o libpcrypt-linux-x86-64.so

@Noctem Noctem deleted the 0.45.0 branch February 28, 2017 10:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

6 participants