Skip to content

Commit 633a781

Browse files
committed
Build C modules with -static-libgcc on Solaris
Without this patch we have the following error: ImportError: ld.so.1: python3.7: fatal: libgcc_s.so.1: open failed: No such file or directory (cherry picked from commit 00f4c2a) (cherry picked from commit 2028ad6)
1 parent ca3e1ac commit 633a781

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9468,8 +9468,8 @@ then
94689468
;;
94699469
SunOS/5*)
94709470
if test "$GCC" = "yes" ; then
9471-
LDSHARED='$(CC) -shared'
9472-
LDCXXSHARED='$(CXX) -shared'
9471+
LDSHARED='$(CC) -static-libgcc -shared'
9472+
LDCXXSHARED='$(CXX) -static-libgcc -shared'
94739473
else
94749474
LDSHARED='$(CC) -G'
94759475
LDCXXSHARED='$(CXX) -G'

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,8 +2587,8 @@ then
25872587
;;
25882588
SunOS/5*)
25892589
if test "$GCC" = "yes" ; then
2590-
LDSHARED='$(CC) -shared'
2591-
LDCXXSHARED='$(CXX) -shared'
2590+
LDSHARED='$(CC) -static-libgcc -shared'
2591+
LDCXXSHARED='$(CXX) -static-libgcc -shared'
25922592
else
25932593
LDSHARED='$(CC) -G'
25942594
LDCXXSHARED='$(CXX) -G'

0 commit comments

Comments
 (0)