summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c7
-rw-r--r--src/internal/slibtool_driver_impl.h1
-rw-r--r--src/skin/slbt_skin_default.c5
3 files changed, 13 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1993414..94e7e9c 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -323,6 +323,9 @@ static int slbt_split_argv(
*targv++ = argv[i++];
*targv++ = argv[i];
+ } else if (!(strcmp("export-dynamic",&argv[i][1]))) {
+ *targv++ = argv[i];
+
} else if (!(strcmp("export-symbols",&argv[i][1]))) {
*targv++ = argv[i++];
*targv++ = argv[i];
@@ -1075,6 +1078,10 @@ int slbt_get_driver_ctx(
case TAG_DLOPEN:
break;
+ case TAG_EXPORT_DYNAMIC:
+ cctx.drvflags |= SLBT_DRIVER_EXPORT_DYNAMIC;
+ break;
+
case TAG_EXPSYM_FILE:
cctx.symfile = entry->arg;
break;
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index b255042..fbeafbc 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -45,6 +45,7 @@ enum app_tags {
TAG_RELEASE,
TAG_DLOPEN,
TAG_DLPREOPEN,
+ TAG_EXPORT_DYNAMIC,
TAG_EXPSYM_FILE,
TAG_EXPSYM_REGEX,
TAG_VERSION_INFO,
diff --git a/src/skin/slbt_skin_default.c b/src/skin/slbt_skin_default.c
index ceb4d30..f691731 100644
--- a/src/skin/slbt_skin_default.c
+++ b/src/skin/slbt_skin_default.c
@@ -161,6 +161,11 @@ const struct argv_option slbt_default_options[] = {
"Link the specified %s into the generated library "
"or executable"},
+ {"export-dynamic", 0,TAG_EXPORT_DYNAMIC,ARGV_OPTARG_NONE,
+ ARGV_OPTION_HYBRID_ONLY,0,0,
+ "allow symbols in the output file to be resolved via dlsym() "
+ "[currently a no-op]"},
+
{"export-symbols", 0,TAG_EXPSYM_FILE,ARGV_OPTARG_REQUIRED,
ARGV_OPTION_HYBRID_ONLY|ARGV_OPTION_HYBRID_SPACE,
0,"<symfile>",