From 5e02698d061d467abbf21ff857e9862e37060f89 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 4 Nov 2022 23:11:23 +0000 Subject: driver: added -weak support, currently a no-op. --- src/driver/slbt_driver_ctx.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/driver/slbt_driver_ctx.c') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 4a9e757..4a5bf62 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -615,6 +615,10 @@ static int slbt_split_argv( *targv++ = argv[i++]; *targv++ = argv[i]; + } else if (!(strcmp("weak",&argv[i][1]))) { + *targv++ = argv[i++]; + *targv++ = argv[i]; + } else if (!(strcmp("static-libtool-libs",&argv[i][1]))) { *targv++ = argv[i]; @@ -1684,6 +1688,9 @@ int slbt_get_driver_ctx( case TAG_STATIC: cmdstatic = entry; break; + + case TAG_WEAK: + break; } } } -- cgit v1.2.3