--- boost-build-1.34.1.ebuild 2008-02-13 15:06:01.000000000 +0100 +++ boost-build-1.34.1-r1.ebuild 2008-02-13 22:44:02.000000000 +0100 @@ -60,7 +60,11 @@ # and link targets to make it use the LDFLAGS var, or # b) a simple dirty workaround by injecting the LDFLAGS in the LIBS env var # (which should not be set by us). - LIBS="${LDFLAGS}" CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) || die "building bjam failed" + if [[ "${LDFLAGS}" != "" ]] ; then + LIBS="${LDFLAGS}" CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) || die "building bjam failed" + else + CC=$(tc-getCC) ./build.sh ${toolset} $(use_with python) || die "building bjam failed" + fi } src_install() {