Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 406997 | Differences between
and this patch

Collapse All | Expand All

(-)lua-5.2.0.ebuild (-7 / +8 lines)
Lines 57-63 Link Here
57
57
58
src_compile() {
58
src_compile() {
59
	tc-export CC
59
	tc-export CC
60
	myflags=
61
	# what to link to liblua
60
	# what to link to liblua
62
	liblibs="-lm"
61
	liblibs="-lm"
63
	liblibs="${liblibs} $(dlopen_lib)"
62
	liblibs="${liblibs} $(dlopen_lib)"
Lines 73-84 Link Here
73
	local legacy=""
72
	local legacy=""
74
	use deprecated && legacy="-DLUA_COMPAT_ALL"
73
	use deprecated && legacy="-DLUA_COMPAT_ALL"
75
74
76
	emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${legacy} ${CFLAGS}" \
75
	emake \
77
			RPATH="${EPREFIX}/usr/$(get_libdir)/" \
76
		CFLAGS="${CFLAGS}" \
78
			LUA_LIBS="${mylibs}" \
77
		SYSLDFLAGS="${LDFLAGS}" \
79
			LIB_LIBS="${liblibs}" \
78
		RPATH="${EPREFIX}/usr/$(get_libdir)/" \
80
			V=${PV} \
79
		LUA_LIBS="${mylibs}" \
81
			gentoo_all || die "emake failed"
80
		LIB_LIBS="${liblibs}" \
81
		V=${PV} \
82
		gentoo_all || die "emake failed"
82
}
83
}
83
84
84
src_install() {
85
src_install() {

Return to bug 406997