ObjFW  Check-in [ab64692609]

Overview
Comment:objfw-compile: Allow -m*
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ab64692609effda24244f70b2ef9494d4bc052bfe8ac038f62bc14405637eb9a
User & Date: js on 2014-02-21 01:03:11
Other Links: manifest | tags
Context
2014-02-21
17:16
atomic.h: Fix OSAtomic on PPC64 check-in: 2b00b3cec8 user: js tags: trunk
01:03
objfw-compile: Allow -m* check-in: ab64692609 user: js tags: trunk
01:03
of_strdup: Add explicit cast for C++ compatibility check-in: 33676cd3a9 user: js tags: trunk
Changes

Modified utils/objfw-compile from [f922fd89a6] to [d77417cb5f].

97
98
99
100
101
102
103











104
105
106
107
108
109
110
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121







+
+
+
+
+
+
+
+
+
+
+







			export LIB_MINOR="${1#*.}"

			lib="yes"
			OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --lib-cflags)"
			out_prefix="$($OBJFW_CONFIG --lib-prefix)"
			out_suffix="$($OBJFW_CONFIG --lib-suffix)"
			;;
		--plugin)
			if test x"$lib" = x"yes"; then
				echo "You can't use --lib and --plugin!"
				exit 1
			fi

			plugin="yes"
			OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --plugin-cflags)"
			LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --plugin-ldflags)"
			out_suffix="$($OBJFW_CONFIG --plugin-suffix)"
			;;
		--arc)
			OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --arc)"
			;;
		--builddir)
			shift
			builddir="$1"
			;;
149
150
151
152
153
154
155
156

157
158
159
160
161
162
163
164

165
166

167
168
169
170
171
172
173
174
175
160
161
162
163
164
165
166

167
168
169






170


171


172
173
174
175
176
177
178







-
+


-
-
-
-
-
-
+
-
-
+
-
-







		-L)
			shift
			LIBS="$LIBS -L$1"
			;;
		-L*)
			LIBS="$LIBS $1"
			;;
		-O*)
		-m)
			OBJCFLAGS="$OBJCFLAGS $1"
			;;
		--plugin)
			if test x"$lib" = x"yes"; then
				echo "You can't use --lib and --plugin!"
				exit 1
			fi

		-O*)
			plugin="yes"
			OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --plugin-cflags)"
			OBJCFLAGS="$OBJCFLAGS $1"
			LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --plugin-ldflags)"
			out_suffix="$($OBJFW_CONFIG --plugin-suffix)"
			;;
		-pthread)
			OBJCFLAGS="$OBJCFLAGS $1"
			LDFLAGS="$LDFLAGS $1"
			;;
		-std=*)
			OBJCFLAGS="$OBJCFLAGS $1"