ObjFW  Check-in [2670c4637e]

Overview
Comment:configure: Don't use -pipe on MorphOS

It's buggy on MorphOS 3.10.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2670c4637e68d248a4e05491f8f8f151265453054f18d43f8c68250f3dc13fda
User & Date: js on 2019-05-05 21:40:13
Other Links: manifest | tags
Context
2019-05-05
22:22
runtime/linklib: Fix compilation on MorphOS check-in: 77945f04a6 user: js tags: trunk
21:40
configure: Don't use -pipe on MorphOS check-in: 2670c4637e user: js tags: trunk
19:28
Create separate Amiga libraries for OS3 & MorphOS check-in: 1e70711672 user: js tags: trunk
Changes

Modified configure.ac from [07a7d423c3] to [1d8a6df756].

88
89
90
91
92
93
94
95

96
97
98
99
100
101
102
88
89
90
91
92
93
94

95
96
97
98
99
100
101
102







-
+







				t='objfw_rt_${OBJFW_RT_LIB_MAJOR}_abox.library'
				AC_SUBST(OBJFW_RT_AMIGA_LIB, $t)
				AC_SUBST(SFDC_TARGET, ppc-morphos)
				AC_SUBST(SFD_FILE, morphos.sfd)
				t="-mresident32 -fno-builtin"
				AC_SUBST(AMIGA_LIB_CFLAGS, $t)
				t="-mresident32 -nostartfiles -nodefaultlibs"
				t="$tmp -lc"
				t="$t -lc"
				AC_SUBST(AMIGA_LIB_LDFLAGS, $t)
			])
		])

		enable_shared="no"
		enable_threads="no"
		;;
271
272
273
274
275
276
277





278



279
280
281
282
283
284
285
271
272
273
274
275
276
277
278
279
280
281
282

283
284
285
286
287
288
289
290
291
292







+
+
+
+
+
-
+
+
+







		OBJCFLAGS="$OBJCFLAGS -std=gnu1x"
	], [
		AX_CHECK_COMPILER_FLAGS(-std=gnu99,
			[OBJCFLAGS="$OBJCFLAGS -std=gnu99"])
	])
])

case "$build_os" in
	morphos*)
		# MorphOS 3.10 has a buggy ixemul that does not work with -pipe.
		;;
	*)
AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"])
		AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"])
		;;
esac
AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCFLAGS="$OBJCFLAGS -fno-common"])
AX_CHECK_COMPILER_FLAGS(-Xclang -fno-constant-cfstrings, [
	flag="-Xclang -fno-constant-cfstrings"
	OBJCFLAGS="$OBJCFLAGS $flag"
	OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flag"
])
AX_CHECK_COMPILER_FLAGS([-Wsign-compare -Werror],