Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9505272

Browse files
committed
Revert SF patch #103655. Martin Löwis says:
-shared does the following things: - invoke the linker with -G -dy -z text (the latter only if -mimpure-text was not given) - drop crt1.o from the list of objects being linked - drop -lc from the list of libraries being linked OTOH, -G is just passed through to the linker. The things that -shared does are necessary: crt1.o defines _start, and requires main, so it should not be present in a shared library. Likewise, -z text should be used to detect position-dependent code at compile time.
1 parent 653809c commit 9505272

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ then
544544
SunOS/4*) LDSHARED="ld";;
545545
SunOS/5*)
546546
if test "$GCC" = "yes"
547-
then LDSHARED='$(CC) -G'
547+
then LDSHARED='$(CC) -shared'
548548
else LDSHARED="ld -G";
549549
fi ;;
550550
hp*|HP*) LDSHARED="ld -b";;

0 commit comments

Comments
 (0)