Lines 36-41
Link Here
|
36 |
src_prepare() { |
36 |
src_prepare() { |
37 |
default |
37 |
default |
38 |
|
38 |
|
|
|
39 |
if [[ "$CFLAGS $CXXFLAGS $LDFLAGS" =~ flto ]]; then |
40 |
einfo "LTO enabled compiler flags detected, patching CMakeLists.txt.." |
41 |
# Fix floorf linking bug |
42 |
sed -e '/^LIBS *=/ s/= */= -lm /;' \ |
43 |
-i tests/Makefile.{am,in} || die "failed sed -i tests/Makefile.{am,in}" |
44 |
fi |
45 |
|
39 |
# Fix documentation slotting |
46 |
# Fix documentation slotting |
40 |
sed "s/^\(DOC_MODULE\).*/\1 = ${PN}-${SLOT}/" \ |
47 |
sed "s/^\(DOC_MODULE\).*/\1 = ${PN}-${SLOT}/" \ |
41 |
-i doc/Makefile.am doc/Makefile.in || die "sed failed" |
48 |
-i doc/Makefile.am doc/Makefile.in || die "sed failed" |