dev-libs/libbulletml: don't override the system-wide flags
authorSergey Alirzaev <zl29ah@gmail.com>
Tue, 19 Jun 2018 07:49:49 +0000 (10:49 +0300)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 25 Apr 2019 21:55:43 +0000 (23:55 +0200)
Signed-off-by: Sergey Alirzaev <zl29ah@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/9714
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
dev-libs/libbulletml/libbulletml-0.0.6.ebuild

index 8a90adf3239603b5e92d4f8012c9bc5573340d14..62b2ec3e1b7d835745380f8a7cbc2be39fb796fa 100644 (file)
@@ -22,6 +22,9 @@ src_prepare() {
        epatch "${FILESDIR}"/${P}-gcc43.patch \
                "${FILESDIR}"/${P}-gcc46.patch
        rm -r boost || die
+
+       # don't override the system-wide flags
+       sed -i -e '/^CFLAGS =/d;/^CXXFLAGS =/d' Makefile ygg/Makefile || die
 }
 
 src_compile() {