ObjFW  Diff

Differences From Artifact [af30c6b6de]:

To Artifact [ee213f3b30]:

  • File configure.ac — part of check-in [b87dab1361] at 2023-01-05 18:35:58 on branch trunk — Don't use -static-libgcc on Windows

    It has a tendency to break exceptions, as only TDM-GCC has patches to
    make it work to use a .dll while statically linking libgcc.

    While in the CLANG64 environment, this is not an issue, the upside of it
    is minimal: It only statically links libunwind instead. While libgcc_s
    contains some things that aren't always needed, what is provided by
    libunwind is always needed. (user: js, size: 58297) [annotate] [blame] [check-ins using]


95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
	;;
*-msdosdjgpp*)
	enable_shared="no"
	enable_threads="no"
	enable_sockets="no"
	;;
*-*-mingw*)
	LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition -static-libgcc"
	LIBS="$LIBS -lversion"

	AC_SUBST(USE_SRCS_WINDOWS, '${SRCS_WINDOWS}')
	;;
*-psp-*)
	AS_IF([test x"$DEVKITPSP" = x""], [
		AC_MSG_ERROR([DEVKITPSP is not set! Please set DEVKITPSP.])







|







95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
	;;
*-msdosdjgpp*)
	enable_shared="no"
	enable_threads="no"
	enable_sockets="no"
	;;
*-*-mingw*)
	LDFLAGS="$LDFLAGS -Wl,--allow-multiple-definition"
	LIBS="$LIBS -lversion"

	AC_SUBST(USE_SRCS_WINDOWS, '${SRCS_WINDOWS}')
	;;
*-psp-*)
	AS_IF([test x"$DEVKITPSP" = x""], [
		AC_MSG_ERROR([DEVKITPSP is not set! Please set DEVKITPSP.])