[Cryptech-Commits] [sw/pkcs11] 18/20: Tweaks to support cross-compilation.

git at cryptech.is git at cryptech.is
Tue Jul 7 18:26:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/pkcs11.

commit 5f0d1c2ecfde778a164dd4cfc362f7bd29ebe241
Author: Rob Austein <sra at hactrn.net>
Date:   Fri Jul 3 20:32:40 2015 -0400

    Tweaks to support cross-compilation.
---
 GNUmakefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 $<



More information about the Commits mailing list