summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-05-02 13:06:43 +0200
committerUlf Hermann <[email protected]>2017-05-08 10:12:01 +0000
commit8df18d00bd1cb59a56d558dcf9ac990199ccceb1 (patch)
treea5055010ae10871408a574a413901ead4c98de23
parent709d36789f4465b4e7a4948b98e0d7c5c66fac2f (diff)
Generalize msvc frontent .lib generation
We want to generate libraries for the same machine type we're builting the dlls for, not only for x86. Change-Id: I93525647c1ff87992ad69282875c8edaec0c31fe Reviewed-by: Christian Kandeler <[email protected]>
-rw-r--r--config/eu.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/eu.am b/config/eu.am
index 637a2c27..9603668e 100644
--- a/config/eu.am
+++ b/config/eu.am
@@ -115,7 +115,14 @@ endif
if NATIVE_PE
%.lib: %.def
- lib /machine:i386 /def:$<
+ case '$(host_cpu)' in \
+ i?86) \
+ lib /machine:x86 /def:$< ;;\
+ x86_64) \
+ lib /machine:x64 /def:$< ;;\
+ arm) \
+ lib /machine:arm /def:$< ;;\
+ esac;
endif
print-%: