configs  Check-in [63683cab83]

Overview
Comment:zshrc: Set --build for DJGPP

Without it, it assumes it's not cross-compiling if wine is installed.
And then fails.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 63683cab8349bd8e9a7ec4963bafcd7717d29326535d10f5564e2cb3f0ff9055
User & Date: js on 2022-12-10 15:15:47
Other Links: manifest | tags
Context
2022-12-10
19:06
sway: Change bar transparency check-in: efacb3d49a user: js tags: trunk
15:15
zshrc: Set --build for DJGPP check-in: 63683cab83 user: js tags: trunk
2022-12-05
00:18
sway: Add shortcut to lock screen check-in: 06913d9ead user: js tags: trunk
Changes

Modified zshrc from [c82f434faf] to [c114ba1090].

467
468
469
470
471
472
473



474
475
476
477
478
479
480
		if [ -z "$prefix" ]; then
			echo "Please install $pkg from pkgsrc!" 1>&2
			return 1
		fi

		export PATH="$prefix/cross-djgpp/bin:$PATH"
		export cross_host="i586-pc-msdosdjgpp"



		;;
	ios | iossim)
		if ! __has_command xcrun; then
			echo -n "Can only cross-compile for iOS " 1>&2
			echo "on a Mac with Xcode!" 1>&2
			return 1
		fi







>
>
>







467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
		if [ -z "$prefix" ]; then
			echo "Please install $pkg from pkgsrc!" 1>&2
			return 1
		fi

		export PATH="$prefix/cross-djgpp/bin:$PATH"
		export cross_host="i586-pc-msdosdjgpp"
		local build="$(LC_ALL=C gcc -v 2>&1 |
		               awk '/^Target:/ { print $2 }')"
		export objfw_configure_flags="--build=$build"
		;;
	ios | iossim)
		if ! __has_command xcrun; then
			echo -n "Can only cross-compile for iOS " 1>&2
			echo "on a Mac with Xcode!" 1>&2
			return 1
		fi