Chip Davis : winegcc: Pass through -fuse-ld= to the linker.

Alexandre Julliard julliard at winehq.org
Mon Nov 25 16:41:56 CST 2019


Module: wine
Branch: master
Commit: 6c50dbd14ec1c652faecc5ca84d78dab74d89b64
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6c50dbd14ec1c652faecc5ca84d78dab74d89b64

Author: Chip Davis <cdavis at codeweavers.com>
Date:   Sun Nov 24 20:13:31 2019 -0600

winegcc: Pass through -fuse-ld= to the linker.

Signed-off-by: Chip Davis <cdavis at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winegcc/winegcc.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 140ca07822..939c1e5c91 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -73,7 +73,7 @@
  *          object-file-name  -llibrary -nostartfiles  -nodefaultlibs
  *          -nostdlib -s  -static  -static-libgcc  -static-libstdc++
  *          -shared  -shared-libgcc  -symbolic  -Wl,option
- *          -Xlinker option -u symbol --image-base
+ *          -Xlinker option -u symbol --image-base -fuse-ld
  *
  *      Directory Options
  *          -Bprefix  -Idir  -I-  -Ldir  -specs=file
@@ -1329,6 +1329,9 @@ static int is_linker_arg(const char* arg)
 	case 'a':
 	    if (strcmp("-arch", arg) == 0) return 1;
 	    break;
+	case 'f':
+	    if (strncmp("-fuse-ld=", arg, 9) == 0) return 1;
+	    break;
     }
 
     for (j = 0; j < ARRAY_SIZE(link_switches); j++)




More information about the wine-cvs mailing list