Opened 11 years ago

Closed 11 years ago

#3391 closed enhancement (fixed)

Configure : automatically detect the need to enable use_32bit

Reported by: mmadia Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


Configure should perform a simple check and conditionally enable the use_32bit flag.

Currently, Haiku does not support 64bit mode. Until it does, this sample code will help to unify the configure command across build platforms.

This is especially useful for creating a build script that can be run on any platform. Specifically, for Bitten, which I am currently working on.

# check for a 64bit platform
platform_machine=`uname  -m`
case "${platform_machine}" in
	x86_64)	use_32bit=1 ;;
	*)	echo Assuming 32-bit machine: "$platform_machine"
		use_32bit=0 ;;

Attachments (1)

3391-rev1.diff (1000 bytes ) - added by mmadia 11 years ago.
preliminary patch

Download all attachments as: .zip

Change History (3)

comment:1 by mmadia, 11 years ago

This should detect FreeBSD 64 and exit

line 337

FreeBSD) buildPlatform=freebsd
	 if [ "$use_32bit" = 1 ]; then
		echo Unsupported platform: FreeBSD `uname -m`
		exit 1 ;;

Later, I'll create a patch for all of this and try to find someone willing to test.

by mmadia, 11 years ago

Attachment: 3391-rev1.diff added

preliminary patch

comment:2 by bonefish, 11 years ago

Resolution: fixed
Status: newclosed

Applied in hrev29314. Thanks!

Note: See TracTickets for help on using tickets.