ObjFW  Diff

Differences From Artifact [5e3c6c916d]:

To Artifact [97ecf45660]:

  • File configure.ac — part of check-in [c70fd7d7f3] at 2016-10-08 15:57:45 on branch trunk — Never override CoreFoundations's forward handler

    If an application links ObjFW and (Core)Foundation, overriding
    CoreFoundation's forward handler breaks things.

    Before this commit, this only worked depending on the load order: If
    ObjFW was loaded first, everything was fine, as CoreFoundation would
    just override ObjFW's forward handler. However, if CoreFoundation would
    be loaded first, ObjFW would override CoreFoundation's forward handler
    and break CoreFoundation. (user: js, size: 34242) [annotate] [blame] [check-ins using]


402
403
404
405
406
407
408

409
410
411
412
413
414
415
])

case "$host_os" in
	darwin*)
		AC_SUBST(LDFLAGS_REEXPORT, ["-Wl,-reexport-lobjfw"])
		AS_IF([test x"$objc_runtime" = x"Apple runtime"], [
			AC_SUBST(REEXPORT_LIBOBJC, ["-Wl,-reexport-lobjc"])

		])

		AS_IF([test x"$objc_runtime" = x"ObjFW runtime"], [
			AS_IF([test x"$exception_type" = x"DWARF"], [
				LDFLAGS="$LDFLAGS -Wl,-U,___gxx_personality_v0"
			])
			AS_IF([test x"$exception_type" = x"SjLj"], [







>







402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
])

case "$host_os" in
	darwin*)
		AC_SUBST(LDFLAGS_REEXPORT, ["-Wl,-reexport-lobjfw"])
		AS_IF([test x"$objc_runtime" = x"Apple runtime"], [
			AC_SUBST(REEXPORT_LIBOBJC, ["-Wl,-reexport-lobjc"])
			LDFLAGS="$LDFLAGS -Wl,-U,_CFRetain"
		])

		AS_IF([test x"$objc_runtime" = x"ObjFW runtime"], [
			AS_IF([test x"$exception_type" = x"DWARF"], [
				LDFLAGS="$LDFLAGS -Wl,-U,___gxx_personality_v0"
			])
			AS_IF([test x"$exception_type" = x"SjLj"], [