ports/devel/objecthash/files/patch-Makefile
Mark Linimon 5f7fb9298e GCC disallows creating arrays of variable size (and const int is a
variable as well). Fix that to fix build on powerpc64.

PR:		231736
Submitted by:	Piotr Kubaj
2018-11-02 15:19:33 +00:00

15 lines
708 B
Text

--- Makefile.orig 2016-08-01 17:37:31 UTC
+++ Makefile
@@ -14,10 +14,10 @@ java:
sbt test
objecthash_test: libobjecthash.so
- $(CC) -std=c99 -Wall -Werror -o objecthash_test objecthash_test.c -lobjecthash -L. -Wl,-rpath -Wl,.
+ $(CC) ${CFLAGS} -std=c99 -Wall -Werror -o objecthash_test objecthash_test.c -lobjecthash -L. -Wl,-rpath -Wl,.
libobjecthash.so: objecthash.c
- $(CC) -fPIC -shared -std=c99 -Wall -Werror -o libobjecthash.so objecthash.c -lcrypto `pkg-config --libs --cflags icu-uc json-c`
+ $(CC) ${CFLAGS} -fPIC -shared -std=c99 -Wall -Werror -o libobjecthash.so objecthash.c -lcrypto `pkg-config --libs --cflags icu-uc json-c`
get:
GOPATH=`pwd` go get golang.org/x/text/unicode/norm