Check-in [7c62241f33]
Overview
Comment:Updated to not cleanup work directory if build fails and created a function to configure gcc
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | packages
Files: files | file ages | folders
SHA1: 7c62241f3312b4ba53a7a2463c785d9ac566380e
User & Date: rkeene on 2014-11-12 07:00:56
Other Links: branch diff | manifest | tags
Context
2014-11-12
07:25
Updated to create a better build environment check-in: 7c4247cf4b user: rkeene tags: packages
07:00
Updated to not cleanup work directory if build fails and created a function to configure gcc check-in: 7c62241f33 user: rkeene tags: packages
2014-11-11
05:37
Updated to deal with dependencies better and specifiy libdir explicitly check-in: 17a7fbab32 user: rkeene tags: packages
Changes

Modified build from [defad12737] to [c37a69bddd].

181
182
183
184
185
186
187
188
189


190
191
192
193
194
195
196


197
198
199
200



201
202
203
204
205
206
207
...
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
	:
}

function postconfigure() {
	:
}

function configure() {
	glibcdir="/opt/appfs/core.appfs.rkeene.org/glibc/platform/latest"


	dynlinker="$(ls "${glibcdir}"/lib/ld-linux*.so.* | tail -n 1)"

	if [ ! -f "${dynlinker}" ]; then
		die 'glibc directory is not available (appfs running/working?)'
	fi

	CC="${CC:-gcc} -nostdinc -I${glibcdir}/include"


	LDFLAGS="${LDFLAGS} -Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}"
	PKG_CONFIG_LIBDIR="${glibcdir}/lib/pkgconfig"
	export LDFLAGS PKG_CONFIG_LIBDIR




	./configure --prefix="${prefix}" --sysconfdir="${prefix}/etc" --libdir="${prefix}/lib" --localstatedir=/var "${configure_extra[@]}"
}

function prebuild() {
	:
}

................................................................................

	message="$1"

	if [ -n "${message}" ]; then
		echo "error: ${message}" >&2
	fi

	cleanup

	exit 1
}

scriptdir="$(cd "$(dirname "$(which "$0")")" && pwd)"
if [ -z "${scriptdir}" ]; then
	echo "Unable to locate script directory" >&2








|

>
>







>
>


|
|
>
>
>







 







<
<







181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
...
245
246
247
248
249
250
251


252
253
254
255
256
257
258
	:
}

function postconfigure() {
	:
}

function configure_gcc() {
	glibcdir="/opt/appfs/core.appfs.rkeene.org/glibc/platform/latest"
	glibcdir="$(readlink -f "${glibcdir}")"

	dynlinker="$(ls "${glibcdir}"/lib/ld-linux*.so.* | tail -n 1)"

	if [ ! -f "${dynlinker}" ]; then
		die 'glibc directory is not available (appfs running/working?)'
	fi

	CC="${CC:-gcc} -nostdinc -I${glibcdir}/include"
	BUILD_CC="${CC}"
	HOST_CC="${CC}"
	LDFLAGS="${LDFLAGS} -Wl,--rpath,${glibcdir}/lib -Wl,--dynamic-linker,${dynlinker}"
	PKG_CONFIG_LIBDIR="${glibcdir}/lib/pkgconfig"
	export CC BUILD_CC HOST_CC LDFLAGS PKG_CONFIG_LIBDIR
}

function configure() {
	configure_gcc
	./configure --prefix="${prefix}" --sysconfdir="${prefix}/etc" --libdir="${prefix}/lib" --localstatedir=/var "${configure_extra[@]}"
}

function prebuild() {
	:
}

................................................................................

	message="$1"

	if [ -n "${message}" ]; then
		echo "error: ${message}" >&2
	fi



	exit 1
}

scriptdir="$(cd "$(dirname "$(which "$0")")" && pwd)"
if [ -z "${scriptdir}" ]; then
	echo "Unable to locate script directory" >&2