ObjFW  Check-in [4c16806252]

Overview
Comment:Fix weak references with the Apple runtime
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4c168062520a087104c5a9a321063c0f515a8ead41bda5cd6025e4b31e2aef96
User & Date: js on 2020-11-12 00:32:11
Other Links: manifest | tags
References
2020-11-12
00:34 Fixed ticket [5b31b3f45e]: Weak references are broken with the Apple runtime plus 4 other changes artifact: 865fcafc00 user: js
Context
2020-11-12
00:37
Add a test for weak references check-in: 171461008d user: js tags: trunk
00:32
Fix weak references with the Apple runtime check-in: 4c16806252 user: js tags: trunk
2020-11-07
20:23
OFObject: Remove -[allocMemoryWithSize:] check-in: 4fbdca698c user: js tags: trunk
Changes

Modified configure.ac from [515a7c4c8c] to [0d76ebba9d].

632
633
634
635
636
637
638



639
640
641
642
643
644


645
646
647
648
649
650
651
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656







+
+
+






+
+







		AC_CHECK_LIB(objc, objc_msgSend, [
			AC_SUBST(RUNTIME_LIBS, "-lobjc")
			AC_SUBST(RUNTIME_FRAMEWORK_LIBS, "-lobjc")
		], [
			AC_MSG_ERROR([libobjc not found!])
		])

		old_OBJCFLAGS="$OBJCFLAGS"
		OBJCFLAGS="$OBJCFLAGS -lobjc"

		AC_CHECK_FUNC(objc_autoreleasePoolPush, [], [
			AC_SUBST(RUNTIME_AUTORELEASE_M, "runtime/autorelease.m")
		])
		AC_CHECK_FUNC(objc_constructInstance, [], [
			AC_SUBST(RUNTIME_INSTANCE_M, "runtime/instance.m")
		])

		OBJCFLAGS="$old_OBJCFLAGS"
		;;
esac

AC_CHECK_FUNCS(_Unwind_Backtrace)

case "$host_os" in
	darwin*)