ObjFW  Check-in [6b43f91448]

Overview
Comment:Use -no-integrated-as on Windows
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6b43f914489bcd0a5e6f79bd19257cbbb58d8f434421204a4768511c5bcbcf75
User & Date: js on 2017-01-07 23:03:19
Other Links: manifest | tags
Context
2017-01-07
23:08
Update buildsys check-in: 888b97ef5a user: js tags: trunk
23:03
Use -no-integrated-as on Windows check-in: 6b43f91448 user: js tags: trunk
22:58
Use -Wl,--allow-multiple-definition on Windows check-in: 8b2107e238 user: js tags: trunk
Changes

Modified configure.ac from [241a907951] to [26942c5c25].

117
118
119
120
121
122
123
124
125
126
127
128
129
130





131
132
133





134
135
136
137
138
139
140
])

CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions -funwind-tables"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"

dnl Clang generates MIPS assembly not accepted by GNU as, however, Clang's
dnl integrated assembler doesn't accept everything used in ObjFW's assembly
dnl files. Therefore, use the integrated assembler for ObjC files, but not for
dnl assembly files.
case "$OBJC" in
	*clang*)
		case "$host_cpu" in





			mips*)
				OBJCFLAGS="$OBJCFLAGS -integrated-as"
				AC_SUBST(INTEGRATED_AS, "-integrated-as")





				;;
		esac
		;;
esac

AX_CHECK_COMPILER_FLAGS(-std=gnu11, [
	OBJCFLAGS="$OBJCFLAGS -std=gnu11"







<
<
<
<


|
>
>
>
>
>
|


>
>
>
>
>







117
118
119
120
121
122
123




124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
])

CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS"
OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions -funwind-tables"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"





case "$OBJC" in
	*clang*)
		case "$host" in
			dnl Clang generates MIPS assembly not accepted by GNU
			dnl as, however, Clang's integrated assembler doesn't
			dnl accept everything used in ObjFW's assembly files.
			dnl Therefore, use the integrated assembler for ObjC
			dnl files, but not for assembly files.
			mips*-*-*)
				OBJCFLAGS="$OBJCFLAGS -integrated-as"
				AC_SUBST(INTEGRATED_AS, "-integrated-as")
				;;
			dnl Clang's assembler on Windows is not complete yet
			dnl and cannot compile all .S files.
			*-*-mingw*)
				ASFLAGS="$ASFLAGS -no-integrated-as"
				;;
		esac
		;;
esac

AX_CHECK_COMPILER_FLAGS(-std=gnu11, [
	OBJCFLAGS="$OBJCFLAGS -std=gnu11"