[Clc-crux64] CRUX64(-danm) and CLC

Daniel Mueller daniel at danm.de
Tue Dec 27 18:54:15 UTC 2005


Some people requested an easier handling of 32bit ports.

The proposal:

- introduce a new variable in Pkgfile called 'arch' or 'pkgarch' 
  (e.g. arch=i386)
- new /etc/pkgmk.conf file which sets the compiler flags depending on
  pkgmk(8)'s new $PKGMK_ARCH var.

An example pkgmk.conf is attached.

bye, danm

-- 
Daniel Mueller
Berlin, Germany         OpenPGP: 1024D/E4F4383A
-------------- next part --------------
#
# /etc/pkgmk.conf: pkgmk(8) configuration
#

case $PKGMK_ARCH in 
i?86)
	# x86
	export CC="gcc -m32"
	export CXX="g++ -m32"
	export AS="as --32"
	export CFLAGS="-O2 -march=i686 -pipe"
	export CXXFLAGS="-O2 -march=i686 -pipe"

	export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
	export FT2_CONFIG=/usr/bin/freetype-config32

	;;
*)
	# x86_64
	export CFLAGS="-O2 -march=x86-64 -pipe"
	export CXXFLAGS="-O2 -march=x86-64 -pipe"

	;;
esac

# PKGMK_SOURCE_DIR="$PWD"
# PKGMK_PACKAGE_DIR="$PWD"
# PKGMK_WORK_DIR="$PWD/work"
# PKGMK_DOWNLOAD="no"
# PKGMK_IGNORE_FOOTPRINT="no"
# PKGMK_NO_STRIP="no"

# End of file


More information about the crux64 mailing list