From 5f0d1c2ecfde778a164dd4cfc362f7bd29ebe241 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 3 Jul 2015 20:32:40 -0400 Subject: Tweaks to support cross-compilation. --- GNUmakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 9f34377..da612e7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -48,6 +48,10 @@ else CFLAGS += -DUSE_PTHREADS=0 endif +ifndef OBJCOPY + OBJCOPY := objcopy +endif + all: libpkcs11.so p11util clean: @@ -69,7 +73,7 @@ pkcs11.so: pkcs11.o ${LIBS} ${CC} ${CFLAGS} -shared -o $@ -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack -g $^ libpkcs11.so: pkcs11.so - objcopy -w -G 'C_*' $< $@ + ${OBJCOPY} -w -G 'C_*' $< $@ p11util.o: p11util.c sql_common.h schema.h ${CC} ${CFLAGS} -c $< -- cgit v1.2.3