diff options
author | Rob Austein <sra@hactrn.net> | 2015-07-03 20:32:40 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-07-03 20:32:40 -0400 |
commit | 5f0d1c2ecfde778a164dd4cfc362f7bd29ebe241 (patch) | |
tree | e7207730cb8d2988d456eccb35657aa4070e871b /GNUmakefile | |
parent | 3b48d104123c12206e1e51a719612f52c3327f8b (diff) |
Tweaks to support cross-compilation.
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 6 |
1 files changed, 5 insertions, 1 deletions
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 $< |