diff options
Diffstat (limited to 'src/cmd/8c/swt.c')
-rw-r--r-- | src/cmd/8c/swt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/8c/swt.c b/src/cmd/8c/swt.c index 035b8e9c3..72cebc00c 100644 --- a/src/cmd/8c/swt.c +++ b/src/cmd/8c/swt.c @@ -231,7 +231,7 @@ outcode(void) Binit(&b, f, OWRITE); Bprint(&b, "%s\n", thestring); - if(ndynimp > 0) { + if(ndynimp > 0 || ndynexp > 0) { int i; Bprint(&b, "\n"); @@ -240,7 +240,10 @@ outcode(void) Bprint(&b, "$$ // dynimport\n", thestring); for(i=0; i<ndynimp; i++) Bprint(&b, "dynimport %s %s %s\n", dynimp[i].local, dynimp[i].remote, dynimp[i].path); - Bprint(&b, "$$\n\n"); + Bprint(&b, "\n$$ // dynexport\n", thestring); + for(i=0; i<ndynexp; i++) + Bprint(&b, "dynexport %s %s\n", dynexp[i].local, dynexp[i].remote); + Bprint(&b, "\n$$\n\n"); } Bprint(&b, "!\n"); |