Skip to content

Commit

Permalink
-single_module is obsolete in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 18, 2024
1 parent 6b44363 commit e0f6422
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 54 deletions.
44 changes: 2 additions & 42 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -7037,7 +7037,7 @@ printf "%s\n" "$ac_cv_cross" >&6; }
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll'

TCL_LIB_VERSIONS_OK=nodots
;;
;;
AIX-*)
if test "$GCC" != "yes"
then :
Expand All @@ -7049,7 +7049,7 @@ then :
;;
*)
# Make sure only first arg gets _r
CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
;;
esac
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5
Expand Down Expand Up @@ -7819,46 +7819,6 @@ esac
fi
# TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS
SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}'
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5
printf %s "checking if ld accepts -single_module flag... " >&6; }
if test ${tcl_cv_ld_single_module+y}
then :
printf %s "(cached) " >&6
else case e in #(
e)
hold_ldflags=$LDFLAGS
LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main (void)
{
int i;
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
tcl_cv_ld_single_module=yes
else case e in #(
e) tcl_cv_ld_single_module=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
LDFLAGS=$hold_ldflags ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5
printf "%s\n" "$tcl_cv_ld_single_module" >&6; }
if test $tcl_cv_ld_single_module = yes
then :

SHLIB_LD="${SHLIB_LD} -Wl,-single_module"

fi
# TEA specific: link shlib with current and compatibility version flags
vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d`
SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}"
Expand Down
24 changes: 12 additions & 12 deletions win/thread.rc
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ VS_VERSION_INFO VERSIONINFO
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP */
BEGIN
VALUE "FileDescription", "Threading extension library for Tcl"
VALUE "OriginalFilename", PRJLIBNAME
VALUE "CompanyName", "NONE! Open-sourced with no owner\0"
VALUE "FileVersion", DOTVERSION
VALUE "LegalCopyright", "Under BSD license\0"
VALUE "ProductName", "Tcl for Windows\0"
VALUE "ProductVersion", DOTVERSION
VALUE "Authors", "Brent Welch,\r\n" "Andreas Kupries, \r\n" "David Gravereaux,\r\n" "Zoran Vasiljevic" "\0"
END
BLOCK "040904b0" /* LANG_ENGLISH/SUBLANG_ENGLISH_US, Unicode CP */
BEGIN
VALUE "FileDescription", "Threading extension library for Tcl"
VALUE "OriginalFilename", PRJLIBNAME
VALUE "CompanyName", "NONE! Open-sourced with no owner\0"
VALUE "FileVersion", DOTVERSION
VALUE "LegalCopyright", "Under BSD license\0"
VALUE "ProductName", "Tcl for Windows\0"
VALUE "ProductVersion", DOTVERSION
VALUE "Authors", "Brent Welch,\r\n" "Andreas Kupries, \r\n" "David Gravereaux,\r\n" "Zoran Vasiljevic" "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
VALUE "Translation", 0x409, 1200
END
END

0 comments on commit e0f6422

Please sign in to comment.