aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-06-23 23:00:19 -0400
committerRob Austein <sra@hactrn.net>2016-06-23 23:00:19 -0400
commit8be614f02ddd5772582e375084ad0822524fd888 (patch)
treec1928ad27827e3121ddd8a972f50dd69479a2ef2
parentea4c71c075df677cd9f559ca06c79e9202630510 (diff)
Reorder ld arguments to get search order right.
-rw-r--r--GNUmakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 77e8748..c936c4a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -116,7 +116,7 @@ pkcs11.o: pkcs11.c schema.h attributes.h
${CC} ${CFLAGS} -c $<
pkcs11.so: pkcs11.o ${LIBS}
- ${CC} ${CFLAGS} -shared -o $@ ${SOFLAGS} ${LDFLAGS} $^
+ ${CC} ${CFLAGS} -shared -o $@ $^ ${SOFLAGS} ${LDFLAGS}
libpkcs11.so: pkcs11.so
${OBJCOPY} -w -G 'C_*' $< $@
@@ -125,7 +125,7 @@ p11util.o: p11util.c schema.h
${CC} ${CFLAGS} -c $<
p11util: p11util.o ${LIBS}
- ${CC} ${CFLAGS} -o $@ ${LDFLAGS} $^
+ ${CC} ${CFLAGS} -o $@ $^ ${LDFLAGS}
tags: TAGS