ObjFW  Check-in [181138c873]

Overview
Comment:objfw-compile: Properly create .bundles
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 181138c873a7e4b1223526ac1014b9220ed47e83d9cb9f989ae4511a0ef2bcfb
User & Date: js on 2019-01-27 19:56:42
Other Links: manifest | tags
Context
2019-02-03
10:45
Merge README-WINDOWS.md into README.md check-in: e9265a46f1 user: js tags: trunk
2019-01-27
19:56
objfw-compile: Properly create .bundles check-in: 181138c873 user: js tags: trunk
16:20
Work around buggy thread_local on AIX check-in: d0f3116147 user: js tags: trunk
Changes

Modified utils/objfw-compile from [08e4a5d920] to [d17fb67d0f].

289
290
291
292
293
294
295










296
297
298
299
300
301
302
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312







+
+
+
+
+
+
+
+
+
+








test x"$link_stdcpp" = x"yes" && LIBS="$LIBS -lstdc++"

if test x"$lib" = x"yes"; then
	export SHARED_LIB="$out_prefix$out$out_suffix"
	LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --lib-ldflags)"
fi

if test x"$plugin" = x"yes" -a x"$out_suffix" = x".bundle"; then
	# If $out_suffix is .bundle, it means we are creating a macOS bundle.
	# These are not just a single file, but have a certain directory
	# structure. Therefore we amend the output path to match the expected
	# directory structure.
	mkdir -p $out$out_suffix/Contents/MacOS
	out="$out$out_suffix/Contents/MacOS/$(basename $out)"
	out_suffix=""
fi

if test ! -f "$out_prefix$out$out_suffix" -o x"$link" = x"yes"; then
	status_linking $out_prefix$out$out_suffix
	$OBJC -o $out_prefix$out$out_suffix $objs $LIBS $LDFLAGS || \
		status_link_failed $out $?
	status_linked $out_prefix$out$out_suffix
fi