summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-11-15 17:05:03 +0100
committerMichał Górny <mgorny@gentoo.org>2016-11-15 17:22:29 +0100
commitb91c6350588a692bc082c77f4b6bdeb5b139f269 (patch)
treef04a02c663d57fc17717f30ab8e8f6b3c28fde39 /sci-electronics/qucs
parentsci-electronics/qucs: Add elog on optional freehdl rdep, #596976 (diff)
downloadgentoo-b91c6350588a692bc082c77f4b6bdeb5b139f269.tar.gz
gentoo-b91c6350588a692bc082c77f4b6bdeb5b139f269.tar.bz2
gentoo-b91c6350588a692bc082c77f4b6bdeb5b139f269.zip
sci-electronics/qucs: Un-force -g, -O0 and -s flag mangling
Diffstat (limited to 'sci-electronics/qucs')
-rw-r--r--sci-electronics/qucs/qucs-0.0.18.ebuild15
1 files changed, 15 insertions, 0 deletions
diff --git a/sci-electronics/qucs/qucs-0.0.18.ebuild b/sci-electronics/qucs/qucs-0.0.18.ebuild
index 1bd51193a653..d2ef71f5cd0b 100644
--- a/sci-electronics/qucs/qucs-0.0.18.ebuild
+++ b/sci-electronics/qucs/qucs-0.0.18.ebuild
@@ -23,6 +23,21 @@ RDEPEND="dev-qt/qtcore:4[qt3support]
x11-libs/libX11:0="
DEPEND="${RDEPEND}"
+src_prepare() {
+ default
+
+ # oh my, they strip -g out of C*FLAGS and force -s into LDFLAGS
+ # note: edit .ac first, then generated files, so that the latter
+ # have newer timestamp and not trigger regen
+ sed -i \
+ -e 's/C.*FLAGS.*sed.*-g.*$/:/' \
+ -e 's/C.*FLAGS.*-O0.*$/:/' \
+ -e 's/LDFLAGS.*-s.*$/:/' \
+ configure.ac asco/configure.ac qucs-core/configure.ac \
+ configure asco/configure qucs-core/configure \
+ || die "C*FLAGS and LDFLAGS sanitization sed failed"
+}
+
src_configure() {
# automagic default on clang++
tc-export CXX