diff options
author | midipix <writeonce@midipix.org> | 2016-03-07 11:55:08 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-08 14:21:09 -0500 |
commit | 4f1b202cf484d6d2e65c54f646c9133dbf5373cc (patch) | |
tree | 21ad9bcfce5bf690af2ea01bd2ecac4e48dd821b | |
parent | b83b64c040e7e858c53b4e3214751ef5fba68897 (diff) | |
download | slibtool-4f1b202cf484d6d2e65c54f646c9133dbf5373cc.tar.bz2 slibtool-4f1b202cf484d6d2e65c54f646c9133dbf5373cc.tar.xz |
driver: added context initialization for -prefer-pic and -prefer-non-pic.
-rw-r--r-- | include/slibtool/slibtool.h | 2 | ||||
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 4ac8c44..90c07ad 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -41,6 +41,8 @@ extern "C" { #define SLBT_DRIVER_DEPS 0x0200 #define SLBT_DRIVER_SILENT 0x0400 #define SLBT_DRIVER_VERBOSE 0x0800 +#define SLBT_DRIVER_PRO_PIC 0x1000 +#define SLBT_DRIVER_ANTI_PIC 0x2000 /* execution modes */ enum slbt_mode { diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index d7e8c14..1567b92 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -201,6 +201,14 @@ int slbt_get_driver_ctx( case TAG_OUTPUT: cctx.output = entry->arg; break; + + case TAG_PREFER_PIC: + cctx.drvflags |= SLBT_DRIVER_PRO_PIC; + break; + + case TAG_PREFER_NON_PIC: + cctx.drvflags |= SLBT_DRIVER_ANTI_PIC; + break; } } else nunits++; |