aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
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 $<