dev-util/strace: set up default build settings #602192
authorMike Frysinger <vapier@gentoo.org>
Sat, 24 Dec 2016 08:49:05 +0000 (03:49 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 24 Dec 2016 09:07:25 +0000 (04:07 -0500)
dev-util/strace/strace-4.13.ebuild
dev-util/strace/strace-4.14.ebuild
dev-util/strace/strace-4.15.ebuild
dev-util/strace/strace-9999.ebuild

index b0c7288791bb82673fef48d47957d1d5621f5767..9804db50c7f4fb68d280de16b6ff64b57f04399d 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
@@ -48,6 +48,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # Set up the default build settings, and then use the naems strace expects.
+       tc-export_build_env BUILD_{CC,CPP}
+       local v bv
+       for v in CC CPP {C,CPP,LD}FLAGS ; do
+               bv="BUILD_${v}"
+               export "${v}_FOR_BUILD=${!bv}"
+       done
+
        econf $(use_with unwind libunwind)
 }
 
index 6c5ede46696de46ef306811f774fffc7f21c6eeb..df019fe92aa14add68143ad76c86c3dae9263d53 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
@@ -48,6 +48,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # Set up the default build settings, and then use the naems strace expects.
+       tc-export_build_env BUILD_{CC,CPP}
+       local v bv
+       for v in CC CPP {C,CPP,LD}FLAGS ; do
+               bv="BUILD_${v}"
+               export "${v}_FOR_BUILD=${!bv}"
+       done
+
        econf $(use_with unwind libunwind)
 }
 
index 6c5ede46696de46ef306811f774fffc7f21c6eeb..df019fe92aa14add68143ad76c86c3dae9263d53 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
@@ -48,6 +48,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # Set up the default build settings, and then use the naems strace expects.
+       tc-export_build_env BUILD_{CC,CPP}
+       local v bv
+       for v in CC CPP {C,CPP,LD}FLAGS ; do
+               bv="BUILD_${v}"
+               export "${v}_FOR_BUILD=${!bv}"
+       done
+
        econf $(use_with unwind libunwind)
 }
 
index 6c5ede46696de46ef306811f774fffc7f21c6eeb..df019fe92aa14add68143ad76c86c3dae9263d53 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI="5"
 
-inherit flag-o-matic eutils
+inherit flag-o-matic eutils toolchain-funcs
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="git://git.code.sf.net/p/strace/code"
@@ -48,6 +48,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # Set up the default build settings, and then use the naems strace expects.
+       tc-export_build_env BUILD_{CC,CPP}
+       local v bv
+       for v in CC CPP {C,CPP,LD}FLAGS ; do
+               bv="BUILD_${v}"
+               export "${v}_FOR_BUILD=${!bv}"
+       done
+
        econf $(use_with unwind libunwind)
 }