From 2c4e5f97a9937016257e70e4841404ca376e808f Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 14 Sep 2020 02:43:32 +0000 Subject: driver: added -Xlinker support. --- src/driver/slbt_driver_ctx.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/driver') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 78058aa..7e1e690 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -407,6 +407,15 @@ static int slbt_split_argv( } else if (!strncmp(argv[i],"-L",2)) { fcopy = true; + } else if (!strcmp(argv[i],"-Xlinker")) { + *dargv++ = dst; + *dst++ = '-'; + *dst++ = 'W'; + *dst++ = 'l'; + *dst++ = ','; + strcpy(dst,argv[++i]); + dst += strlen(dst)+1; + } else if (!strcmp(argv[i],"--library-path")) { *dargv++ = dst; *dst++ = '-'; -- cgit v1.2.3