summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-14 05:31:34 +0000
committermidipix <writeonce@midipix.org>2024-02-14 05:31:34 +0000
commit20bc88f1267c1407eceacc81216ad122005dc8c0 (patch)
treea2ad28084ad14bbbf28ef14105df8531965c1e6d /src
parent5d0af4bacc8f8ec740f829df045dedeedf13cf13 (diff)
downloadslibtool-20bc88f1267c1407eceacc81216ad122005dc8c0.tar.bz2
slibtool-20bc88f1267c1407eceacc81216ad122005dc8c0.tar.xz
link mode: dlltool support: also pass an explicit machine specification.
Diffstat (limited to 'src')
-rw-r--r--src/logic/linkcmd/slbt_linkcmd_implib.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/logic/linkcmd/slbt_linkcmd_implib.c b/src/logic/linkcmd/slbt_linkcmd_implib.c
index 84bd8a1..43ca45b 100644
--- a/src/logic/linkcmd/slbt_linkcmd_implib.c
+++ b/src/logic/linkcmd/slbt_linkcmd_implib.c
@@ -29,7 +29,7 @@ int slbt_exec_link_create_import_library(
char * soname)
{
int fmdso;
- char * eargv[12];
+ char * eargv[14];
char program[PATH_MAX];
char as[PATH_MAX];
@@ -91,11 +91,15 @@ int slbt_exec_link_create_import_library(
&& (host[4] == '-')) {
eargv[9] = "-f";
eargv[10] = "--32";
- eargv[11] = 0;
+ eargv[11] = "-m";
+ eargv[12] = "i386";
+ eargv[13] = 0;
} else {
eargv[9] = "-f";
eargv[10] = "--64";
- eargv[11] = 0;
+ eargv[11] = "-m";
+ eargv[12] = "i386:x86-64";
+ eargv[13] = 0;
}
}
}