libk  Check-in [960d952eed]

Overview
Comment:Add default errno locations for building on Android with Termux Should probably be revised, but this is a starting point.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | BAD
Files: files | file ages | folders
SHA3-256: 960d952eedd55684ad194891cdc6b2df26f0fd04620fdda36161ce7d7700d7da
User & Date: glowpelt on 2019-10-22 19:43:58
Original User & Date: u0_a201 on 2019-10-22 19:43:58
Other Links: branch diff | manifest | tags
Context
2019-10-22
19:43
Add default errno locations for building on Android with Termux Should probably be revised, but this is a starting point. Leaf check-in: 960d952eed user: glowpelt tags: BAD
2019-10-21
04:28
don't clobber callee-saved registers check-in: 481509e134 user: lexi tags: trunk
Changes

Modified build.sh from [4c9dbc8e12] to [1a5246e64d].

101
102
103
104
105
106
107

108
109
110
111
112
113
114
export build=$(global/build-id.sh)

if test "$p_headers_errno" = ""; then
	case $os in
		lin) p_headers_errno="${p_headers_errno:-/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h}";;

		fbsd) p_headers_errno="${p_headers_errno:-/usr/include/errno.h}";;

	esac
fi

check p_headers_errno \
	'the location of a header defining the values of each errno symbol'

macro_compile_env="-Datom_target_arch=$arch -Datom_target_os=$os -Dtarget_posix=$posix -Dtarget_unix=$unix"







>







101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
export build=$(global/build-id.sh)

if test "$p_headers_errno" = ""; then
	case $os in
		lin) p_headers_errno="${p_headers_errno:-/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h}";;

		fbsd) p_headers_errno="${p_headers_errno:-/usr/include/errno.h}";;
		and) p_headers_errno="${p_headers_errno:-/data/data/com.termux/files/usr/include/asm-generic/errno.h /data/data/com.termux/files/usr/include/asm-generic/errno-base.h}";;
	esac
fi

check p_headers_errno \
	'the location of a header defining the values of each errno symbol'

macro_compile_env="-Datom_target_arch=$arch -Datom_target_os=$os -Dtarget_posix=$posix -Dtarget_unix=$unix"