32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
|
--- a/Makefile.tool.am
|
||
|
+++ b/Makefile.tool.am
|
||
|
@@ -44,13 +44,13 @@
|
||
|
-nodefaultlibs -nostartfiles -Wl,-u,_start @FLAG_NO_BUILD_ID@
|
||
|
|
||
|
TOOL_LDFLAGS_X86_LINUX = \
|
||
|
- $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@
|
||
|
+ $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@ $(shell $(CC) @FLAG_M32@ -print-libgcc-file-name)
|
||
|
|
||
|
TOOL_LDFLAGS_X86_FREEBSD = \
|
||
|
$(TOOL_LDFLAGS_COMMON_FREEBSD) @FLAG_M32@
|
||
|
|
||
|
TOOL_LDFLAGS_AMD64_LINUX = \
|
||
|
- $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@
|
||
|
+ $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@ $(shell $(CC) @FLAG_M64@ -print-libgcc-file-name)
|
||
|
|
||
|
TOOL_LDFLAGS_AMD64_FREEBSD = \
|
||
|
$(TOOL_LDFLAGS_COMMON_FREEBSD) @FLAG_M64@
|
||
|
@@ -65,10 +65,10 @@
|
||
|
$(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@
|
||
|
|
||
|
TOOL_LDFLAGS_ARM_LINUX = \
|
||
|
- $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@
|
||
|
+ $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M32@ $(shell $(CC) @FLAG_M32@ -print-libgcc-file-name)
|
||
|
|
||
|
TOOL_LDFLAGS_ARM64_LINUX = \
|
||
|
- $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@
|
||
|
+ $(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@ $(shell $(CC) @FLAG_M64@ -print-libgcc-file-name)
|
||
|
|
||
|
TOOL_LDFLAGS_S390X_LINUX = \
|
||
|
$(TOOL_LDFLAGS_COMMON_LINUX) @FLAG_M64@
|