Skip to content

Commit

Permalink
compile mode: respect -disable-static and -disable-shared.
Browse files Browse the repository at this point in the history
  • Loading branch information
midipix committed Nov 5, 2016
1 parent 210852c commit 005b656
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/driver/slbt_driver_ctx.c
Expand Up @@ -1048,6 +1048,14 @@ int slbt_get_driver_ctx(
}
}

/* -disable-static? */
if (cctx.drvflags & SLBT_DRIVER_DISABLE_STATIC)
cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_STATIC;

/* -disable-shared? */
if (cctx.drvflags & SLBT_DRIVER_DISABLE_SHARED)
cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_SHARED;

/* debug: raw argument vector */
if (cctx.drvflags & SLBT_DRIVER_DEBUG)
slbt_output_raw_vector(argv,envp);
Expand Down

0 comments on commit 005b656

Please sign in to comment.